C# Класс Hyper.Http.Formatting.MediaTypeFormatterExtensions

MediaTypeFormatterExtensions class.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

CanReadAndWriteType() публичный статический Метод

Determines whether this instance [can read and write type] the specified type.
public static CanReadAndWriteType ( Type type ) : bool
type System.Type The type.
Результат bool

GetMediaType() публичный статический Метод

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.
Результат System.Net.Http.Headers.MediaTypeWithQualityHeaderValue

GetMediaType() публичный статический Метод

Gets the type of the media.
public static GetMediaType ( this formatter ) : string
formatter this The formatter.
Результат string

ToHyperFormatter() публичный статический Метод

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.
Результат System.Net.Http.Formatting.MediaTypeFormatter