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
Type
public Type Type { get; }
Property Value
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
Write(Utf8JsonWriter, ICollection<Object>, JsonSerializerOptions)
public void Write(Utf8JsonWriter writer, ICollection<object> value, JsonSerializerOptions options)
Parameters
writer Utf8JsonWriter
value ICollection<Object>
options JsonSerializerOptions