JsonCreationConverter<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Helper class to use for deserializing where the concrete classes are determined by checking properties in the JSON data.
public abstract class JsonCreationConverter<T> : Newtonsoft.Json.JsonConverter
type JsonCreationConverter<'T> = class
inherit JsonConverter
Public MustInherit Class JsonCreationConverter(Of T)
Inherits JsonConverter
Type Parameters
- T
- Inheritance
-
Newtonsoft.Json.JsonConverterJsonCreationConverter<T>
- Derived
Constructors
JsonCreationConverter<T>() |
Properties
CanWrite |
Let Newtonsoft.Json use the default writer |
Methods
CanConvert(Type) |
Determines if this converted is designed to deserialization to objects of the specified type. |
Create(Type, JObject) |
Create an instance of objectType, based properties in the JSON object |
ReadJson(JsonReader, Type, Object, JsonSerializer) |
Parses the json to the specified type. |
WriteJson(JsonWriter, Object, JsonSerializer) |
Serializes to the specified type |