ObjectCollectionConverter
Namespace: Meshmakers.Octo.ConstructionKit.Contracts.Serialization
Converter for System.Text.Json and YamlDotNet for ICollection<T>/>
public class ObjectCollectionConverter : IYamlTypeConverter
Inheritance Object → ObjectCollectionConverter
Implements IYamlTypeConverter
Constructors
ObjectCollectionConverter()
public ObjectCollectionConverter()
Methods
Accepts(Type)
public bool Accepts(Type type)
Parameters
type Type
Returns
ReadYaml(IParser, Type, ObjectDeserializer)
public object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer)
Parameters
parser IParser
type Type
rootDeserializer ObjectDeserializer
Returns
WriteYaml(IEmitter, Object, Type, ObjectSerializer)
public void WriteYaml(IEmitter emitter, object value, Type type, ObjectSerializer rootSerializer)
Parameters
emitter IEmitter
value Object
type Type
rootSerializer ObjectSerializer