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

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Serializes a value to a writer using generated metadata from a serializer context.

public static void Serialize(TextWriter writer, object? value, Type inputType, YamlSerializerContext context)

Parameters

writer
TextWriter

The destination writer.

value
Object

The value to serialize.

inputType
Type

The declared input type.

context
YamlSerializerContext

The source-generated serializer context.