PointerJsonConverterclass

Custom JSON converter for the Pointer class that serializes a Pointer as a string and deserializes a string back into a Pointer using the Parse method.

objectJsonConverter<Json/Pointer>PointerJsonConverter
Namespace
global
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Json.PointerJsonConverter : System.Text.Json.Serialization.JsonConverter`1<Sandbox.Json/Pointer>

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

public virtual Sandbox.Json.Pointer Read(System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)PUBLICVIRTUAL

ParameterTypeDescription
readerUtf8JsonReader
typeToConvertType
optionsJsonSerializerOptions
Returns:Pointer

public virtual void Write(System.Text.Json.Utf8JsonWriter writer, Sandbox.Json.Pointer value, System.Text.Json.JsonSerializerOptions options)PUBLICVIRTUAL

ParameterTypeDescription
writerUtf8JsonWriter
valuePointer
optionsJsonSerializerOptions
Returns:void

On this page