C# Class Hyper.Http.Formatting.MediaTypeFormatterExtensions

MediaTypeFormatterExtensions class.
Mostra file Open project: tmitchel2/Hyper Class Usage Examples

Public Methods

Method Description
CanReadAndWriteType ( Type type ) : bool

Determines whether this instance [can read and write type] the specified type.

GetMediaType ( this formatter, Type type ) : System.Net.Http.Headers.MediaTypeWithQualityHeaderValue

Gets the type of the media.

GetMediaType ( this formatter ) : string

Gets the type of the media.

ToHyperFormatter ( this formatter, string mediaTypeName, IEnumerable types ) : System.Net.Http.Formatting.MediaTypeFormatter

To the hyper formatter.

Method Details

CanReadAndWriteType() public static method

Determines whether this instance [can read and write type] the specified type.
public static CanReadAndWriteType ( Type type ) : bool
type System.Type The type.
return bool

GetMediaType() public static method

Gets the type of the media.
public static GetMediaType ( this formatter, Type type ) : System.Net.Http.Headers.MediaTypeWithQualityHeaderValue
formatter this The formatter.
type System.Type The type.
return System.Net.Http.Headers.MediaTypeWithQualityHeaderValue

GetMediaType() public static method

Gets the type of the media.
public static GetMediaType ( this formatter ) : string
formatter this The formatter.
return string

ToHyperFormatter() public static method

To the hyper formatter.
public static ToHyperFormatter ( this formatter, string mediaTypeName, IEnumerable types ) : System.Net.Http.Formatting.MediaTypeFormatter
formatter this The formatter.
mediaTypeName string Name of the media type.
types IEnumerable The types.
return System.Net.Http.Formatting.MediaTypeFormatter