Table of Contents

WriteString Method

Definition

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

WriteString(IEmitter, string, string, Action<ScalarOptions>)

Writes the propertyName and value as part of a name/value pair of an YAML object.

public static void WriteString(this IEmitter writer, string propertyName, string value, Action<ScalarOptions> setup = null)

Parameters

writer IEmitter

The YamlDotNet.Core.IEmitter to extend.

propertyName string

The name of the YAML object.

value string

The value to be written as part of the name/value pair of an YAML object.

setup Action<ScalarOptions>

The ScalarOptions which may be configured.