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

字符串处理
Datei anzeigen Open project: Chinaccn/surfboard

Public Methods

Method 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 method

Html解码
public static HtmlDecode ( this theString ) : string
theString this
return string

HtmlEncode() public static method

Html编码
public static HtmlEncode ( this theString ) : string
theString this
return string

StringFilter() public static method

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

SubStr() public static method

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

ToDbValue() public static method

转换成mysql值
public static ToDbValue ( this userInput ) : string
userInput this
return string

ToImageSrc() public static method

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

ToJson() public static method

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