Serialize(TextWriter, T, YamlSerializerOptions?) Method

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Serializes a value to a writer.

public static void Serialize<T>(TextWriter writer, T value, YamlSerializerOptions? options = null)

Type parameters

T
The CLR type to serialize.

Parameters

writer
TextWriter

The destination writer.

value
{T}

The value to serialize.

options
YamlSerializerOptions

The serializer options. If null, Default is used.