EnumExpressionConverter<T>.ReadJson(JsonReader, Type, EnumExpression<T>, Boolean, JsonSerializer) Method

Definition

Reads the JSON representation of the object.

public override AdaptiveExpressions.Properties.EnumExpression<T> ReadJson (Newtonsoft.Json.JsonReader reader, Type objectType, AdaptiveExpressions.Properties.EnumExpression<T> existingValue, bool hasExistingValue, Newtonsoft.Json.JsonSerializer serializer);
override this.ReadJson : Newtonsoft.Json.JsonReader * Type * AdaptiveExpressions.Properties.EnumExpression<'T (requires 'T : struct)> * bool * Newtonsoft.Json.JsonSerializer -> AdaptiveExpressions.Properties.EnumExpression<'T (requires 'T : struct)>
Public Overrides Function ReadJson (reader As JsonReader, objectType As Type, existingValue As EnumExpression(Of T), hasExistingValue As Boolean, serializer As JsonSerializer) As EnumExpression(Of T)

Parameters

reader
Newtonsoft.Json.JsonReader

The Newtonsoft.Json.JsonReader to read from.

objectType
Type

Type of the object.

existingValue
EnumExpression<T>

The existing value of object being read.

hasExistingValue
Boolean

A boolean value indicating whether there is an existing value of object to be read.

serializer
Newtonsoft.Json.JsonSerializer

The calling serializer.

Returns

EnumExpression<T>

An EnumExpression instance.

Applies to