C# Class MvcApi.Formatting.FormattingUtilities

Provides various internal utility functions
Afficher le fichier Open project: dax70/MvcApi

Méthodes publiques

Свойство Type Description
DelegatingEnumerableGenericType System.Type
EnumerableInterfaceGenericType System.Type
HttpContentType System.Type
HttpRequestMessageType System.Type
HttpResponseMessageType System.Type
QueryableInterfaceGenericType System.Type
XsdDataContractExporter System.Runtime.Serialization.XsdDataContractExporter

Méthodes publiques

Méthode Description
CreateDefaultReaderQuotas ( ) : XmlDictionaryReaderQuotas

Create a default reader quotas with a default depth quota of 1K

CreateEmptyContentHeaders ( ) : HttpContentHeaders

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

DateToString ( DateTimeOffset dateTime ) : string
IsJTokenType ( Type type ) : bool

Determines whether type is a JToken type.

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

ValidateHeaderToken ( string token ) : bool

Method Details

CreateDefaultReaderQuotas() public static méthode

Create a default reader quotas with a default depth quota of 1K
public static CreateDefaultReaderQuotas ( ) : XmlDictionaryReaderQuotas
Résultat System.Xml.XmlDictionaryReaderQuotas

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

IsJTokenType() public static méthode

Determines whether type is a JToken type.
public static IsJTokenType ( Type type ) : bool
type System.Type The type to test.
Résultat bool

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

ValidateHeaderToken() public static méthode

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

Property Details

DelegatingEnumerableGenericType public_oe static_oe property

A Type representing DelegatingEnumerable{T}.
public static Type,System DelegatingEnumerableGenericType
Résultat System.Type

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

XsdDataContractExporter public_oe static_oe property

An instance of XsdDataContractExporter.
public static XsdDataContractExporter,System.Runtime.Serialization XsdDataContractExporter
Résultat System.Runtime.Serialization.XsdDataContractExporter