Method | Description | |
---|---|---|
BetterJsonMediaTypeFormatter ( ) : System.Collections |
Initializes a new instance of the JsonMediaTypeFormatter class.
|
|
CreateDefaultSerializerSettings ( ) : |
Creates a JsonSerializerSettings instance with the default settings used by the JsonMediaTypeFormatter.
|
Method | Description | |
---|---|---|
CanReadType ( Type type ) : bool |
Determines whether this JsonMediaTypeFormatter can read objects of the specified type.
|
|
CanWriteType ( Type type ) : bool |
Determines whether this JsonMediaTypeFormatter can write objects of the specified type.
|
|
OnReadFromStreamAsync ( Type type, |
Called during deserialization to read an object of the specified type from the specified stream.
|
|
OnWriteToStreamAsync ( Type type, object value, |
Called during serialization to write an object of the specified type to the specified stream.
|
Method | Description | |
---|---|---|
IsKnownUnserializableType ( Type type ) : bool |
public BetterJsonMediaTypeFormatter ( ) : System.Collections | ||
return | System.Collections |
protected CanReadType ( Type type ) : bool | ||
type | Type | The type of object that will be read. |
return | bool |
protected CanWriteType ( Type type ) : bool | ||
type | Type | The type of object that will be written. |
return | bool |
public CreateDefaultSerializerSettings ( ) : |
||
return |
protected OnReadFromStreamAsync ( Type type, |
||
type | Type | The type of object to read. |
stream | The |
|
contentHeaders | The |
|
formatterContext | FormatterContext | |
return | Task |
protected OnWriteToStreamAsync ( Type type, object value, |
||
type | Type | The type of object to write. |
value | object | The object to write. |
stream | The |
|
contentHeaders | The |
|
formatterContext | FormatterContext | |
transportContext | TransportContext | The |
return | System.Threading.Tasks.Task |