Skip to main content

OctoObjectIdEnumerableConverter

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.Serialization

Converter for serializing and deserializing OctoObjectId arrays

public class OctoObjectIdEnumerableConverter : JsonConverter<IEnumerable<OctoObjectId>>

Inheritance Object → JsonConverter → JsonConverter<IEnumerable<OctoObjectId>> → OctoObjectIdEnumerableConverter

Properties​

HandleNull​

public bool HandleNull { get; }

Property Value​

Boolean

Type​

public Type Type { get; }

Property Value​

Type

Constructors​

OctoObjectIdEnumerableConverter()​

public OctoObjectIdEnumerableConverter()

Methods​

Read(out Utf8JsonReader, Type, JsonSerializerOptions)​

public IEnumerable<OctoObjectId> Read(out Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters​

reader Utf8JsonReader

typeToConvert Type

options JsonSerializerOptions

Returns​

IEnumerable<OctoObjectId>

Write(Utf8JsonWriter, IEnumerable<OctoObjectId>, JsonSerializerOptions)​

public void Write(Utf8JsonWriter writer, IEnumerable<OctoObjectId> value, JsonSerializerOptions options)

Parameters​

writer Utf8JsonWriter

value IEnumerable<OctoObjectId>

options JsonSerializerOptions