WriteObject Method
Definition
- Namespace
- Codebelt.Extensions.YamlDotNet
- Assemblies
- Codebelt.Extensions.YamlDotNet.dll
WriteObject(IEmitter, object, YamlFormatterOptions)
Serializes the specified value into a YAML format.
public static void WriteObject(this IEmitter writer, object value, YamlFormatterOptions options)
Parameters
writerIEmitterThe YamlDotNet.Core.IEmitter to extend.
valueobjectThe Object to serialize.
optionsYamlFormatterOptionsOptions 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
writerIEmitterThe YamlDotNet.Core.IEmitter to extend.
valueobjectThe Object to serialize.
valueTypeTypeThe type of the
valueto convert.optionsYamlFormatterOptionsOptions to control the conversion behavior.