Show / Hide Table of Contents

Class BigIntegerArrayConverter

Converts a JSON array of strings (representing hex values) to an array of BigIntegers and vice versa.

Inheritance
object
JsonConverter
JsonConverter<BigInteger[]>
BigIntegerArrayConverter
Inherited Members
JsonConverter<BigInteger[]>.CanConvert(Type)
JsonConverter<BigInteger[]>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<BigInteger[]>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<BigInteger[]>.Write(Utf8JsonWriter, BigInteger[], JsonSerializerOptions)
JsonConverter<BigInteger[]>.WriteAsPropertyName(Utf8JsonWriter, BigInteger[], JsonSerializerOptions)
JsonConverter<BigInteger[]>.HandleNull
JsonConverter<BigInteger[]>.Type
JsonConverter.CanConvert(Type)
JsonConverter.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 BigIntegerArrayConverter : JsonConverter<BigInteger[]>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type T.

Declaration
public override BigInteger[] 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
BigInteger[]

The converted value.

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

Write(Utf8JsonWriter, BigInteger[], JsonSerializerOptions)

Writes a specified value as JSON.

Declaration
public override void Write(Utf8JsonWriter writer, BigInteger[] values, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer

The writer to write to.

BigInteger[] values
JsonSerializerOptions options

An object that specifies serialization options to use.

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