Class BigIntegerConverter
Converts BigInteger to and from hexadecimal JSON string values, using the 0x-prefixed format.
Inherited Members
Namespace: Hiero.Converters
Assembly: Hiero.dll
Syntax
public sealed class BigIntegerConverter : JsonConverter<BigInteger>
Methods
| Edit this page View SourceRead(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type BigInteger.
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
| Edit this page View SourceWrite(Utf8JsonWriter, BigInteger, JsonSerializerOptions)
Writes a specified value as JSON.
Declaration
public override void Write(Utf8JsonWriter writer, BigInteger value, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Utf8JsonWriter | writer | The writer to write to. |
| BigInteger | value | The value to convert to JSON. |
| JsonSerializerOptions | options | An object that specifies serialization options to use. |