Class EpochSecondsDateTimeConverter
Inheritance
System.Object
EpochSecondsDateTimeConverter
Assembly: Steeltoe.Management.EndpointBase.dll
Syntax
public class EpochSecondsDateTimeConverter : JsonConverter<DateTime>
Methods
|
Edit this page
View Source
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Declaration
public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type |
Name |
Description |
Utf8JsonReader |
reader |
|
Type |
typeToConvert |
|
JsonSerializerOptions |
options |
|
Returns
Type |
Description |
DateTime |
|
|
Edit this page
View Source
Write(Utf8JsonWriter, DateTime, JsonSerializerOptions)
Declaration
public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options)
Parameters
Type |
Name |
Description |
Utf8JsonWriter |
writer |
|
DateTime |
value |
|
JsonSerializerOptions |
options |
|