C# 클래스 Yammer.APIWrapper.OAuth.Rfc3986

Performs RFC 3986 encoding and decoding. http://www.apps.ietf.org/rfc/rfc3986.html
파일 보기 프로젝트 열기: kdavie/Yammer.NET-2.0

공개 메소드들

메소드 설명
Decode ( string input ) : string

Perform RFC 3986 Percent-decoding on a string.

Encode ( string input ) : string

Perform RFC 3986 Percent-encoding on a string.

EncodeAndJoin ( NameValueCollection values ) : string

Join the name-value pairs into a string seperated with ampersands. Each name and value is first RFC 3986 encoded and values are separated from names with equal signs.

SplitAndDecode ( string input ) : NameValueCollection

Splits a ampersand-separated list of key-value pairs, decodes the keys and values, and adds them to a NameValueCollection. Keys and values are separated by equals signs.

비공개 메소드들

메소드 설명
EncodeToBytes ( string input, Encoding enc ) : byte[]
IntToHex ( int n ) : char
NeedsEscaping ( char c ) : bool

메소드 상세

Decode() 공개 정적인 메소드

Perform RFC 3986 Percent-decoding on a string.
public static Decode ( string input ) : string
input string The input RFC 3986 Percent-encoded string
리턴 string

Encode() 공개 정적인 메소드

Perform RFC 3986 Percent-encoding on a string.
public static Encode ( string input ) : string
input string The input string
리턴 string

EncodeAndJoin() 공개 정적인 메소드

Join the name-value pairs into a string seperated with ampersands. Each name and value is first RFC 3986 encoded and values are separated from names with equal signs.
public static EncodeAndJoin ( NameValueCollection values ) : string
values System.Collections.Specialized.NameValueCollection The name value collection to encode and join
리턴 string

SplitAndDecode() 공개 정적인 메소드

Splits a ampersand-separated list of key-value pairs, decodes the keys and values, and adds them to a NameValueCollection. Keys and values are separated by equals signs.
/// If the string is not a series of key-value pairs separated by ampersands, /// or if one of the keys is null or empty, or if one of the keys or values is /// not properly encoded. ///
public static SplitAndDecode ( string input ) : NameValueCollection
input string The key-value pair list
리턴 System.Collections.Specialized.NameValueCollection