C# 클래스 Hyper.Http.Formatting.MediaTypeFormatterExtensions

MediaTypeFormatterExtensions class.
파일 보기 프로젝트 열기: tmitchel2/Hyper 1 사용 예제들

공개 메소드들

메소드 설명
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