C# 클래스 SystemEx.Escaping

Contains utility methods for escaping and unescaping strings.
파일 보기 프로젝트 열기: pvginkel/SystemEx

공개 메소드들

메소드 설명
Base64Decode ( string data ) : byte[]
Base64Encode ( byte data ) : string
HtmlDecode ( string value ) : string

Decodes a string using HTML encoding.

HtmlEncode ( string value ) : string

Encodes a string using HTML encoding.

StringDecode ( string value ) : string
StringEncode ( string value ) : string

Encodes a string using C encoding with " as the quote char.

StringEncode ( string value, bool enclose ) : string
StringEncode ( string value, char quoteChar ) : string

Encodes a string using C encoding with quoteChar as the quote char.

StringEncode ( string value, char quoteChar, bool enclose ) : string

Encodes a string using C encoding with quoteChar as the quote char.

UriDecode ( string value ) : string

Decodes a string using URI encoding.

UriEncode ( string value ) : string

Encodes a string using URI encoding.

UrlDecode ( string value ) : string>.Dictionary
UrlEncode ( string>.Dictionary value ) : string

비공개 메소드들

메소드 설명
Escaping ( ) : System

메소드 상세

Base64Decode() 공개 정적인 메소드

public static Base64Decode ( string data ) : byte[]
data string
리턴 byte[]

Base64Encode() 공개 정적인 메소드

public static Base64Encode ( byte data ) : string
data byte
리턴 string

HtmlDecode() 공개 정적인 메소드

Decodes a string using HTML encoding.
public static HtmlDecode ( string value ) : string
value string The string to be decoded.
리턴 string

HtmlEncode() 공개 정적인 메소드

Encodes a string using HTML encoding.
public static HtmlEncode ( string value ) : string
value string The string to encode.
리턴 string

StringDecode() 공개 정적인 메소드

public static StringDecode ( string value ) : string
value string
리턴 string

StringEncode() 공개 정적인 메소드

Encodes a string using C encoding with " as the quote char.
public static StringEncode ( string value ) : string
value string The string to encode.
리턴 string

StringEncode() 공개 정적인 메소드

public static StringEncode ( string value, bool enclose ) : string
value string
enclose bool
리턴 string

StringEncode() 공개 정적인 메소드

Encodes a string using C encoding with quoteChar as the quote char.
public static StringEncode ( string value, char quoteChar ) : string
value string The string to encode.
quoteChar char The character used to quote the string. The default /// value for this parameter is ".
리턴 string

StringEncode() 공개 정적인 메소드

Encodes a string using C encoding with quoteChar as the quote char.
public static StringEncode ( string value, char quoteChar, bool enclose ) : string
value string The string to encode.
quoteChar char The character used to quote the string. The default /// value for this parameter is ".
enclose bool
리턴 string

UriDecode() 공개 정적인 메소드

Decodes a string using URI encoding.
public static UriDecode ( string value ) : string
value string The string to decode.
리턴 string

UriEncode() 공개 정적인 메소드

Encodes a string using URI encoding.
public static UriEncode ( string value ) : string
value string The string to encode.
리턴 string

UrlDecode() 공개 정적인 메소드

public static UrlDecode ( string value ) : string>.Dictionary
value string
리턴 string>.Dictionary

UrlEncode() 공개 정적인 메소드

public static UrlEncode ( string>.Dictionary value ) : string
value string>.Dictionary
리턴 string