Table of Contents

WriteObject Method

Definition

Namespace
Codebelt.Extensions.YamlDotNet
Assemblies
Codebelt.Extensions.YamlDotNet.dll
Source
src/Codebelt.Extensions.YamlDotNet/EmitterExtensions.cs

WriteObject(IEmitter, object, YamlFormatterOptions)

Serializes the specified value into a YAML format.

public static void WriteObject(this IEmitter writer, object value, YamlFormatterOptions options)

Parameters

writer IEmitter

The YamlDotNet.Core.IEmitter to extend.

value object

The Object to serialize.

options YamlFormatterOptions

Options to control the conversion behavior.

WriteObject(IEmitter, object, Type, YamlFormatterOptions)

Serializes the specified value into a YAML format.

public static void WriteObject(this IEmitter writer, object value, Type valueType, YamlFormatterOptions options)

Parameters

writer IEmitter

The YamlDotNet.Core.IEmitter to extend.

value object

The Object to serialize.

valueType Type

The type of the value to convert.

options YamlFormatterOptions

Options to control the conversion behavior.