JsonDateOnlyStringRead Method

Reads and converts the JSON to a nullable DateOnly.

Definition

Namespace: Common.Core.Converters
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public override DateOnly? Read(
	ref Utf8JsonReader reader,
	Type typeToConvert,
	JsonSerializerOptions options
)

Parameters

reader  Utf8JsonReader
The reader.
typeToConvert  Type
The type to convert.
options  JsonSerializerOptions
An object that specifies serialization options to use.

Return Value

NullableDateOnly
The converted value or if the value could not be converted.

See Also