C# Class Cedar.Framework.Common.BaseClasses.StringExtesion

字符串处理
Afficher le fichier Open project: Chinaccn/surfboard

Méthodes publiques

Méthode Description
HtmlDecode ( this theString ) : string

Html解码

HtmlEncode ( this theString ) : string

Html编码

StringFilter ( this source ) : string

字符串处理,将字符串中 #{str}/@{str} 处理成 str

SubStr ( this str, int length ) : string

字符串截取

ToDbValue ( this userInput ) : string

转换成mysql值

ToImageSrc ( HttpRequestMessage request, string value, string &imageSrc ) : bool

将值转换成图片显示

ToJson ( this model ) : string

序列化MQModel实体信息

Method Details

HtmlDecode() public static méthode

Html解码
public static HtmlDecode ( this theString ) : string
theString this
Résultat string

HtmlEncode() public static méthode

Html编码
public static HtmlEncode ( this theString ) : string
theString this
Résultat string

StringFilter() public static méthode

字符串处理,将字符串中 #{str}/@{str} 处理成 str
public static StringFilter ( this source ) : string
source this 源字符串
Résultat string

SubStr() public static méthode

字符串截取
public static SubStr ( this str, int length ) : string
str this 源字符串
length int 长度
Résultat string

ToDbValue() public static méthode

转换成mysql值
public static ToDbValue ( this userInput ) : string
userInput this
Résultat string

ToImageSrc() public static méthode

将值转换成图片显示
public static ToImageSrc ( HttpRequestMessage request, string value, string &imageSrc ) : bool
request System.Net.Http.HttpRequestMessage 请求
value string 转换值
imageSrc string 可访问图片源地址
Résultat bool

ToJson() public static méthode

序列化MQModel实体信息
public static ToJson ( this model ) : string
model this MQModel实体
Résultat string