Table of Contents

Class Point2DConverter

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

Represents Point2DConverter.

public class Point2DConverter : JsonConverter<Point2D>
Inheritance
Point2DConverter
Inherited Members

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type Point2D.

public override Point2D 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

Point2D

The converted value.

ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)

Read Point2D from JSON property name (dictionary key)

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

Parameters

reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Returns

Point2D

Write(Utf8JsonWriter, Point2D, JsonSerializerOptions)

Writes a specified value as JSON.

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

Parameters

writer Utf8JsonWriter

The writer to write to.

value Point2D

The value to convert to JSON.

options JsonSerializerOptions

An object that specifies serialization options to use.

WriteAsPropertyName(Utf8JsonWriter, Point2D, JsonSerializerOptions)

Write Point2D as JSON property name (dictionary key)

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

Parameters

writer Utf8JsonWriter
value Point2D
options JsonSerializerOptions