C# 클래스 Temp.FormattingUtilities

Provides various internal utility functions
파일 보기 프로젝트 열기: anurse/ReviewR

공개 프로퍼티들

프로퍼티 타입 설명
EnumerableInterfaceGenericType System.Type
HttpContentType System.Type
HttpRequestMessageType System.Type
HttpResponseMessageType System.Type
QueryableInterfaceGenericType System.Type
Utf16EncodingType System.Type
Utf8EncodingType System.Type

공개 메소드들

메소드 설명
CreateEmptyContentHeaders ( ) : HttpContentHeaders

Creates an empty HttpContentHeaders instance. The only way is to get it from a dummy HttpContent instance.

DateToString ( DateTimeOffset dateTime ) : string
TryParseDate ( string input, DateTimeOffset &result ) : bool
TryParseInt32 ( string value, int &result ) : bool

Parses valid integer strings with no leading signs, whitespace or other NumberStyles

UnquoteToken ( string token ) : string

Remove bounding quotes on a token if present

ValidateCollection ( Collection actual, MediaTypeHeaderValue expected ) : bool

Ensure the actual collection is identical to the expected one

ValidateHeaderToken ( string token ) : bool

메소드 상세

CreateEmptyContentHeaders() 공개 정적인 메소드

Creates an empty HttpContentHeaders instance. The only way is to get it from a dummy HttpContent instance.
public static CreateEmptyContentHeaders ( ) : HttpContentHeaders
리턴 System.Net.Http.Headers.HttpContentHeaders

DateToString() 공개 정적인 메소드

public static DateToString ( DateTimeOffset dateTime ) : string
dateTime DateTimeOffset
리턴 string

TryParseDate() 공개 정적인 메소드

public static TryParseDate ( string input, DateTimeOffset &result ) : bool
input string
result DateTimeOffset
리턴 bool

TryParseInt32() 공개 정적인 메소드

Parses valid integer strings with no leading signs, whitespace or other NumberStyles
public static TryParseInt32 ( string value, int &result ) : bool
value string The value to parse
result int The result
리턴 bool

UnquoteToken() 공개 정적인 메소드

Remove bounding quotes on a token if present
public static UnquoteToken ( string token ) : string
token string Token to unquote.
리턴 string

ValidateCollection() 공개 정적인 메소드

Ensure the actual collection is identical to the expected one
public static ValidateCollection ( Collection actual, MediaTypeHeaderValue expected ) : bool
actual Collection The actual collection of the instance
expected System.Net.Http.Headers.MediaTypeHeaderValue The expected collection of the instance
리턴 bool

ValidateHeaderToken() 공개 정적인 메소드

public static ValidateHeaderToken ( string token ) : bool
token string
리턴 bool

프로퍼티 상세

EnumerableInterfaceGenericType 공개적으로 정적으로 프로퍼티

A Type representing IEnumerable{T}.
public static Type,System EnumerableInterfaceGenericType
리턴 System.Type

HttpContentType 공개적으로 정적으로 프로퍼티

A Type representing HttpContent.
public static Type,System HttpContentType
리턴 System.Type

HttpRequestMessageType 공개적으로 정적으로 프로퍼티

A Type representing HttpRequestMessage.
public static Type,System HttpRequestMessageType
리턴 System.Type

HttpResponseMessageType 공개적으로 정적으로 프로퍼티

A Type representing HttpResponseMessage.
public static Type,System HttpResponseMessageType
리턴 System.Type

QueryableInterfaceGenericType 공개적으로 정적으로 프로퍼티

A Type representing IQueryable{T}.
public static Type,System QueryableInterfaceGenericType
리턴 System.Type

Utf16EncodingType 공개적으로 정적으로 프로퍼티

A Type representing UnicodeEncoding.
public static Type,System Utf16EncodingType
리턴 System.Type

Utf8EncodingType 공개적으로 정적으로 프로퍼티

A Type representing UTF8Encoding.
public static Type,System Utf8EncodingType
리턴 System.Type