Show / Hide Table of Contents

Class UnsignedLongMirrorConverter

Unsigned Long Converter that tolerates null values.

Inheritance
object
JsonConverter
JsonConverter<ulong>
UnsignedLongMirrorConverter
Inherited Members
JsonConverter<ulong>.CanConvert(Type)
JsonConverter<ulong>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<ulong>.WriteAsPropertyName(Utf8JsonWriter, ulong, JsonSerializerOptions)
JsonConverter<ulong>.HandleNull
JsonConverter<ulong>.Type
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero.Converters
Assembly: Hiero.dll
Syntax
public sealed class UnsignedLongMirrorConverter : JsonConverter<ulong>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type ulong.

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

The reader.

Type typeToConvert

The type to convert.

JsonSerializerOptions options

An object that specifies serialization options to use.

Returns
Type Description
ulong

The converted value.

Overrides
JsonConverter<ulong>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
| Edit this page View Source

Write(Utf8JsonWriter, ulong, JsonSerializerOptions)

Writes a specified value as JSON.

Declaration
public override void Write(Utf8JsonWriter writer, ulong value, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer

The writer to write to.

ulong value

The value to convert to JSON.

JsonSerializerOptions options

An object that specifies serialization options to use.

Overrides
JsonConverter<ulong>.Write(Utf8JsonWriter, ulong, JsonSerializerOptions)
  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph