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

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Serializes a value to an IBufferWriter<T> destination using an explicit input type and generated metadata from a serializer context.

public static void Serialize(IBufferWriter<char> destination, object? value, Type inputType, YamlSerializerContext context)

Parameters

destination
IBufferWriter<Char>

The destination buffer writer.

value
Object

The value to serialize.

inputType
Type

The declared input type.

context
YamlSerializerContext

The source-generated serializer context.