OctoObjectIdArrayConverter
Namespace: Meshmakers.Octo.ConstructionKit.Contracts.Serialization
Converter for serializing and deserializing OctoObjectId arrays
public class OctoObjectIdArrayConverter : JsonConverter<OctoObjectId[]>
Inheritance Object → JsonConverter → JsonConverter<OctoObjectId[]> → OctoObjectIdArrayConverter
Properties
HandleNull
public bool HandleNull { get; }
Property Value
Type
public Type Type { get; }
Property Value
Constructors
OctoObjectIdArrayConverter()
public OctoObjectIdArrayConverter()
Methods
Read(out Utf8JsonReader, Type, JsonSerializerOptions)
public OctoObjectId[] Read(out Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions
Returns
Write(Utf8JsonWriter, OctoObjectId[], JsonSerializerOptions)
public void Write(Utf8JsonWriter writer, OctoObjectId[] value, JsonSerializerOptions options)
Parameters
writer Utf8JsonWriter
value OctoObjectId[]
options JsonSerializerOptions