JsonCreationConverter<T> Class

Definition

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.JsonConverter
JsonCreationConverter<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

Applies to