Share via


EnumConverter.ReadJson(JsonReader, Type, Object, JsonSerializer) Method

Definition

Deserializes the object to the correct type.

public override object ReadJson (Newtonsoft.Json.JsonReader reader, Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer);
override this.ReadJson : Newtonsoft.Json.JsonReader * Type * obj * Newtonsoft.Json.JsonSerializer -> obj
Public Overrides Function ReadJson (reader As JsonReader, objectType As Type, existingValue As Object, serializer As JsonSerializer) As Object

Parameters

reader
Newtonsoft.Json.JsonReader

The Newtonsoft.Json.JsonReader to read from.

objectType
Type

The interface type.

existingValue
Object

The existing value of the object being read.

serializer
Newtonsoft.Json.JsonSerializer

The Newtonsoft.Json.JsonSerializer for deserialization.

Returns

Applies to