YamlValue Class

Represents the Yaml Value.

public class YamlValue : YamlElement
Inheritance
YamlElement YamlValue

Constructors

NameDescription
YamlValue(object, IYamlSchema?)Initializes a new instance of this type.

YamlValue(object, IYamlSchema?)

YamlValue.cs

Initializes a new instance of this type.

public YamlValue(object value, IYamlSchema? schema = null)

Parameters

value object
schema IYamlSchema?

Properties

NameDescription
AnchorGets anchor.
IsCanonicalGets a value indicating whether is Canonical.
IsPlainImplicitGets a value indicating whether is Plain Implicit.
IsQuotedImplicitGets a value indicating whether is Quoted Implicit.
ScalarGets or sets the scalar event represented by this YAML value, including source location marks.
StyleGets style.
TagGets tag.
ValueGets value.

Gets anchor.

public override string? Anchor { get; set; }

Property value

string?

IsCanonical

YamlValue.cs

Gets a value indicating whether is Canonical.

public override bool IsCanonical { get; }

Property value

bool

IsPlainImplicit

YamlValue.cs

Gets a value indicating whether is Plain Implicit.

public bool IsPlainImplicit { get; set; }

Property value

bool

IsQuotedImplicit

YamlValue.cs

Gets a value indicating whether is Quoted Implicit.

public bool IsQuotedImplicit { get; set; }

Property value

bool

Gets or sets the scalar event represented by this YAML value, including source location marks.

public Scalar Scalar { get; set; }

Property value

Scalar

Exceptions

ArgumentNullException
value is null.

Gets style.

public ScalarStyle Style { get; set; }

Property value

ScalarStyle

Gets tag.

public override string? Tag { get; set; }

Property value

string?

Gets value.

public string Value { get; set; }

Property value

string

Methods

NameDescription
DeepClone()Creates a deep clone of the current value.
Load(EventReader)Loads data.

DeepClone()

YamlValue.cs

Creates a deep clone of the current value.

public override YamlNode DeepClone()

Returns

YamlNode

Load(EventReader)

YamlValue.cs

Loads data.

public static YamlValue Load(EventReader eventReader)

Parameters

eventReader EventReader

Returns

YamlValue