Serialize(IBufferWriter, Object?, Type, YamlSerializerOptions?) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Serializes a value to an IBufferWriter<T> destination using an explicit input type.

public static void Serialize(IBufferWriter<char> destination, object? value, Type inputType, YamlSerializerOptions? options = null)

Parameters

destination
IBufferWriter<Char>

The destination buffer writer.

value
Object

The value to serialize.

inputType
Type

The declared input type.

options
YamlSerializerOptions

The serializer options. If null, Default is used.