C# 클래스 Cedar.Framework.Common.BaseClasses.StringExtesion

字符串处理
파일 보기 프로젝트 열기: Chinaccn/surfboard

공개 메소드들

메소드 설명
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实体信息

메소드 상세

HtmlDecode() 공개 정적인 메소드

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

HtmlEncode() 공개 정적인 메소드

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

StringFilter() 공개 정적인 메소드

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

SubStr() 공개 정적인 메소드

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

ToDbValue() 공개 정적인 메소드

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

ToImageSrc() 공개 정적인 메소드

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

ToJson() 공개 정적인 메소드

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