JsonDateOnlyString Class

Converts a nullable DateOnly string to or from JSON.

Definition

Namespace: Common.Core.Converters
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public class JsonDateOnlyString : JsonConverter<DateOnly?>
Inheritance
Object    JsonConverter    JsonConverterNullableDateOnly    JsonDateOnlyString

Constructors

JsonDateOnlyStringInitializes a new instance of the JsonDateOnlyString class

Properties

HandleNull Gets a value that indicates whether null should be passed to the converter on serialization.
(Overrides JsonConverterTHandleNull)

Methods

ReadReads and converts the JSON to a nullable DateOnly.
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions))
WriteWrites a specified value as JSON.
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions))

See Also