Share via


ExtensibleEnumConverter<T>.ReadJson Method

Definition

Deserializes a string into an ExtensibleEnum.

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 JSON reader.

objectType
Type

Ignored by this method.

existingValue
Object

Ignored by this method.

serializer
Newtonsoft.Json.JsonSerializer

Ignored by this method.

Returns

An instance of type T, or null if the current JSON token is null.

Applies to