Méthode | 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.
|
Méthode | 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.
|
Méthode | Description | |
---|---|---|
IsKnownUnserializableType ( Type type ) : bool |
public BetterJsonMediaTypeFormatter ( ) : System.Collections | ||
Résultat | System.Collections |
protected CanReadType ( Type type ) : bool | ||
type | Type | The type of object that will be read. |
Résultat | bool |
protected CanWriteType ( Type type ) : bool | ||
type | Type | The type of object that will be written. |
Résultat | bool |
public CreateDefaultSerializerSettings ( ) : |
||
Résultat |
protected OnReadFromStreamAsync ( Type type, |
||
type | Type | The type of object to read. |
stream | The |
|
contentHeaders | The |
|
formatterContext | FormatterContext | |
Résultat | 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 |
Résultat | System.Threading.Tasks.Task |