C# Class Temp.FormattingUtilities

Provides various internal utility functions
Afficher le fichier Open project: anurse/ReviewR

Méthodes publiques

Свойство Type Description
EnumerableInterfaceGenericType System.Type
HttpContentType System.Type
HttpRequestMessageType System.Type
HttpResponseMessageType System.Type
QueryableInterfaceGenericType System.Type
Utf16EncodingType System.Type
Utf8EncodingType System.Type

Méthodes publiques

Méthode Description
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

Method Details

CreateEmptyContentHeaders() public static méthode

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

DateToString() public static méthode

public static DateToString ( DateTimeOffset dateTime ) : string
dateTime DateTimeOffset
Résultat string

TryParseDate() public static méthode

public static TryParseDate ( string input, DateTimeOffset &result ) : bool
input string
result DateTimeOffset
Résultat bool

TryParseInt32() public static méthode

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
Résultat bool

UnquoteToken() public static méthode

Remove bounding quotes on a token if present
public static UnquoteToken ( string token ) : string
token string Token to unquote.
Résultat string

ValidateCollection() public static méthode

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
Résultat bool

ValidateHeaderToken() public static méthode

public static ValidateHeaderToken ( string token ) : bool
token string
Résultat bool

Property Details

EnumerableInterfaceGenericType public_oe static_oe property

A Type representing IEnumerable{T}.
public static Type,System EnumerableInterfaceGenericType
Résultat System.Type

HttpContentType public_oe static_oe property

A Type representing HttpContent.
public static Type,System HttpContentType
Résultat System.Type

HttpRequestMessageType public_oe static_oe property

A Type representing HttpRequestMessage.
public static Type,System HttpRequestMessageType
Résultat System.Type

HttpResponseMessageType public_oe static_oe property

A Type representing HttpResponseMessage.
public static Type,System HttpResponseMessageType
Résultat System.Type

QueryableInterfaceGenericType public_oe static_oe property

A Type representing IQueryable{T}.
public static Type,System QueryableInterfaceGenericType
Résultat System.Type

Utf16EncodingType public_oe static_oe property

A Type representing UnicodeEncoding.
public static Type,System Utf16EncodingType
Résultat System.Type

Utf8EncodingType public_oe static_oe property

A Type representing UTF8Encoding.
public static Type,System Utf8EncodingType
Résultat System.Type