Skip to main content

DefaultValuesConverter

Namespace: Meshmakers.Octo.ConstructionKit.Contracts.Serialization

Converter for System.Text.Json and YamlDotNet for ICollection<T>/>

public class DefaultValuesConverter : JsonConverter<ICollection<Object>>

Inheritance Object → JsonConverter → JsonConverter<ICollection<Object>> → DefaultValuesConverter

Properties​

HandleNull​

public bool HandleNull { get; }

Property Value​

Boolean

Type​

public Type Type { get; }

Property Value​

Type

Constructors​

DefaultValuesConverter()​

public DefaultValuesConverter()

Methods​

Read(out Utf8JsonReader, Type, JsonSerializerOptions)​

public ICollection<object> Read(out Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters​

reader Utf8JsonReader

typeToConvert Type

options JsonSerializerOptions

Returns​

ICollection<Object>

Write(Utf8JsonWriter, ICollection<Object>, JsonSerializerOptions)​

public void Write(Utf8JsonWriter writer, ICollection<object> value, JsonSerializerOptions options)

Parameters​

writer Utf8JsonWriter

value ICollection<Object>

options JsonSerializerOptions