Casper.Network.SDK
Show / Hide Table of Contents

Class BlockAdded.BlockConverter

Inheritance
object
JsonConverter
JsonConverter<Block>
BlockAdded.BlockConverter
Inherited Members
JsonConverter<Block>.CanConvert(Type)
JsonConverter<Block>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<Block>.WriteAsPropertyName(Utf8JsonWriter, Block, JsonSerializerOptions)
JsonConverter<Block>.HandleNull
JsonConverter<Block>.Type
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Casper.Network.SDK.SSE
Assembly: Casper.Network.SDK.dll
Syntax
public class BlockAdded.BlockConverter : JsonConverter<Block>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type Block.

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

The converted value.

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

Write(Utf8JsonWriter, Block, JsonSerializerOptions)

Writes a specified value as JSON.

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

The writer to write to.

Block block
JsonSerializerOptions options

An object that specifies serialization options to use.

Overrides
JsonConverter<Block>.Write(Utf8JsonWriter, Block, JsonSerializerOptions)
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC