Table of Contents

Class MillisecondsUnixDateTimeOffsetConverter

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

Constructors

MillisecondsUnixDateTimeOffsetConverter()

public MillisecondsUnixDateTimeOffsetConverter()

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