Show / Hide Table of Contents

Class EvmAddressConverter

EVM Address JSON Converter

Inheritance
object
JsonConverter
JsonConverter<EvmAddress>
EvmAddressConverter
Inherited Members
JsonConverter<EvmAddress>.CanConvert(Type)
JsonConverter<EvmAddress>.HandleNull
JsonConverter<EvmAddress>.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 EvmAddressConverter : JsonConverter<EvmAddress>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type EvmAddress.

Declaration
public override EvmAddress 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
EvmAddress

The converted value.

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

ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads a dictionary key from a JSON property name.

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

The Utf8JsonReader to read from.

Type typeToConvert

The type to convert.

JsonSerializerOptions options

The options to use when reading the value.

Returns
Type Description
EvmAddress

The value that was converted.

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

Write(Utf8JsonWriter, EvmAddress, JsonSerializerOptions)

Writes a specified value as JSON.

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

The writer to write to.

EvmAddress evmAddress
JsonSerializerOptions options

An object that specifies serialization options to use.

Overrides
JsonConverter<EvmAddress>.Write(Utf8JsonWriter, EvmAddress, JsonSerializerOptions)
| Edit this page View Source

WriteAsPropertyName(Utf8JsonWriter, EvmAddress, JsonSerializerOptions)

Writes a dictionary key as a JSON property name.

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

The Utf8JsonWriter to write to.

EvmAddress value

The value to convert. The value of HandleNull determines if the converter handles null values.

JsonSerializerOptions options

The options to use when writing the value.

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