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

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Serializes a value to a writer using an explicit input type.

public static void Serialize(TextWriter writer, object? value, Type inputType, YamlSerializerOptions? options = null)

Parameters

writer
TextWriter

The destination writer.

value
Object

The value to serialize.

inputType
Type

The declared input type.

options
YamlSerializerOptions

The serializer options. If null, Default is used.