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

Definition

Namespace SharpYaml
Assembly SharpYaml.dll

Serializes a value to a stream using UTF-8 encoding and an explicit input type.

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

Parameters

utf8Stream
Stream

The destination stream.

value
Object

The value to serialize.

inputType
Type

The declared input type.

options
YamlSerializerOptions

The serializer options. If null, Default is used.