Class TimeOnlyJsonConverter

Namespace
Cratis.Json
Assembly
Cratis.Fundamentals.dll

Represents a JsonConverter<T> for handling TimeOnly.

public class TimeOnlyJsonConverter : JsonConverter<TimeOnly>
Inheritance
TimeOnlyJsonConverter
Inherited Members
Extension Methods

Constructors

TimeOnlyJsonConverter()

public TimeOnlyJsonConverter()

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

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

Parameters

reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Returns

TimeOnly

Write(Utf8JsonWriter, TimeOnly, JsonSerializerOptions)

public override void Write(Utf8JsonWriter writer, TimeOnly value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter
value TimeOnly
options JsonSerializerOptions