Skip to main content

NewtonsoftParitySingleConverter

Namespace: Meshmakers.Octo.Runtime.Contracts.Serialization

Single-precision twin of NewtonsoftParityDoubleConverter.

public sealed class NewtonsoftParitySingleConverter : JsonConverter<Single>

Inheritance Object → JsonConverter → JsonConverter<Single> → NewtonsoftParitySingleConverter

Properties

HandleNull

public bool HandleNull { get; }

Property Value

Boolean

Type

public Type Type { get; }

Property Value

Type

Constructors

NewtonsoftParitySingleConverter()

public NewtonsoftParitySingleConverter()

Methods

Read(out Utf8JsonReader, Type, JsonSerializerOptions)

public float Read(out Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader

typeToConvert Type

options JsonSerializerOptions

Returns

Single

Write(Utf8JsonWriter, Single, JsonSerializerOptions)

public void Write(Utf8JsonWriter writer, float value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

value Single

options JsonSerializerOptions