Table of Contents

Class MillisecondsNullableUnixDateTimeOffsetConverter

Namespace
NetCord.JsonConverters
Assembly
NetCord.dll
public class MillisecondsNullableUnixDateTimeOffsetConverter : JsonConverter<DateTimeOffset?>
Inheritance
MillisecondsNullableUnixDateTimeOffsetConverter
Inherited Members

Constructors

MillisecondsNullableUnixDateTimeOffsetConverter()

public MillisecondsNullableUnixDateTimeOffsetConverter()

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

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

Parameters

reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Returns

DateTimeOffset?

Write(Utf8JsonWriter, DateTimeOffset?, JsonSerializerOptions)

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

Parameters

writer Utf8JsonWriter
value DateTimeOffset?
options JsonSerializerOptions