C# Class Hypermedia.WebApi.HypermediaMediaTypeFormatter

Inheritance: System.Net.Http.Formatting.MediaTypeFormatter
显示文件 Open project: cosullivan/Hypermedia

Public Methods

Method Description
CanReadType ( Type type ) : bool

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can deserializean object of the specified type.

CanWriteType ( Type type ) : bool

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can serializean object of the specified type.

Protected Methods

Method Description
CanReadOrWrite ( Type type ) : bool

Returns a value indicating whether or not the dictionary has a metadata mapping for the given type.

HypermediaMediaTypeFormatter ( string name, string mediaTypeName, IContractResolver contractResolver ) : System

Constructor.

Method Details

CanReadOrWrite() protected method

Returns a value indicating whether or not the dictionary has a metadata mapping for the given type.
protected CanReadOrWrite ( Type type ) : bool
type System.Type The element type to test for a mapping.
return bool

CanReadType() public method

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can deserializean object of the specified type.
public CanReadType ( Type type ) : bool
type System.Type The type to deserialize.
return bool

CanWriteType() public method

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can serializean object of the specified type.
public CanWriteType ( Type type ) : bool
type System.Type The type to serialize.
return bool

HypermediaMediaTypeFormatter() protected method

Constructor.
protected HypermediaMediaTypeFormatter ( string name, string mediaTypeName, IContractResolver contractResolver ) : System
name string The friendly name of the format.
mediaTypeName string The correct media type name for content negotiation.
contractResolver IContractResolver The resource contract resolver used to resolve the contracts at runtime.
return System