Table of Contents

Read Method

Definition

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to DateTime.

public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader

The Utf8JsonReader to read from.

typeToConvert Type

The Type being converted.

options JsonSerializerOptions

The JsonSerializerOptions being used.

Returns

DateTime

The converted value.