Table of Contents

Class Point3DConverter

Namespace
Moongate.UO.Data.Json.Converters
Assembly
Moongate.UO.Data.dll

Represents Point3DConverter.

public class Point3DConverter : JsonConverter<Point3D>
Inheritance
Point3DConverter
Inherited Members

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type Point3D.

public override Point3D Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader

The reader.

typeToConvert Type

The type to convert.

options JsonSerializerOptions

An object that specifies serialization options to use.

Returns

Point3D

The converted value.

ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)

Read Point3D from JSON property name (dictionary key)

public override Point3D ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Returns

Point3D

Write(Utf8JsonWriter, Point3D, JsonSerializerOptions)

Writes a specified value as JSON.

public override void Write(Utf8JsonWriter writer, Point3D value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

The writer to write to.

value Point3D

The value to convert to JSON.

options JsonSerializerOptions

An object that specifies serialization options to use.

WriteAsPropertyName(Utf8JsonWriter, Point3D, JsonSerializerOptions)

Write Point3D as JSON property name (dictionary key)

public override void WriteAsPropertyName(Utf8JsonWriter writer, Point3D value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter
value Point3D
options JsonSerializerOptions