Table of Contents

YamlValueKind Enum

Definition

Namespace
Bodu.Text.Yaml
Assembly
Bodu.Text.Yaml.dll
Package
Bodu.Text.Yaml 1.0.0
Source
YamlValueKind.cs

Specifies the resolved kind of a YAML node, as surfaced by the document object models after implicit type resolution has been applied to scalars.

public enum YamlValueKind
Extension Methods

Fields

None = 0

No value. Used as the default before a node has been read.

Null = 1

The YAML null value, written as null, ~, or an empty scalar.

Boolean = 2

A boolean value.

Integer = 3

An integer value.

Float = 4

A floating-point value, including the infinity and not-a-number forms.

String = 5

A string value.

Sequence = 6

An ordered sequence of nodes, written in block or flow style.

Mapping = 7

An unordered mapping of key nodes to value nodes, written in block or flow style.

Remarks

The kind reflects the resolved type of a node, not its source presentation. A scalar written as "42" in double quotes resolves to String, whereas the plain scalar 42 resolves to Integer under the active YamlSpecVersion. Collections are reported as Sequence or Mapping regardless of whether they used block or flow style.

Applies to

ProductVersions
.NET8, 10