Aracılığıyla paylaş


PolymorphicJsonCustomConverter<T1,T2> Class

Definition

public class PolymorphicJsonCustomConverter<T1,T2> : Newtonsoft.Json.JsonConverter where T1 : class where T2 : class
type PolymorphicJsonCustomConverter<'T1, 'T2 (requires 'T1 : null and 'T2 : null)> = class
    inherit JsonConverter
Public Class PolymorphicJsonCustomConverter(Of T1, T2)
Inherits JsonConverter

Type Parameters

T1
T2
Inheritance
Newtonsoft.Json.JsonConverter
PolymorphicJsonCustomConverter<T1,T2>

Constructors

PolymorphicJsonCustomConverter<T1,T2>(String, String)

Initializes a new instance of the PolymorphicJsonCustomConverter<T1,T2> class.

Methods

CanConvert(Type)

Determines whether this instance can convert the specified object type.

ReadJson(JsonReader, Type, Object, JsonSerializer)

Reads the JSON representation of the object.

WriteJson(JsonWriter, Object, JsonSerializer)

Writes the JSON representation of the object.

Applies to