Casper.Network.SDK
Show / Hide Table of Contents

Class DateTime2EpochConverter

Inheritance
System.Object
DateTime2EpochConverter
Namespace: Casper.Network.SDK.Converters
Assembly: Casper.Network.SDK.dll
Syntax
public class DateTime2EpochConverter : JsonConverter<ulong>

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Declaration
public override ulong Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonReader reader
Type typeToConvert
JsonSerializerOptions options
Returns
Type Description
System.UInt64

Write(Utf8JsonWriter, UInt64, JsonSerializerOptions)

Declaration
public override void Write(Utf8JsonWriter writer, ulong epochTimeInMillis, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer
System.UInt64 epochTimeInMillis
JsonSerializerOptions options
In This Article
Back to top Maintained by MAKE Technology LLC