YamlTokenType enum
This enum defines the various YAML tokens that make up a YAML text and is used by the Utf8YamlReader when moving from one token to the next. The Utf8YamlReader starts at 'None' by default. The 'Comment' enum value is only ever reached in a specific Utf8YamlReader mode and is not reachable by default.
Namespace: System.Text.Yaml ยท Assembly: Styml.dll
public enum YamlTokenType : byte
This enum defines the various YAML tokens that make up a YAML text and is used by the Utf8YamlReader when moving from one token to the next. The Utf8YamlReader starts at 'None' by default. The 'Comment' enum value is only ever reached in a specific Utf8YamlReader mode and is not reachable by default.
FieldsLink to this heading
| Name | Value | Description |
|---|---|---|
None |
0 | Indicates that there is no value (as distinct from YamlTokenType.Null). |
StartObject |
1 | Indicates that the token type is the start of a YAML object. |
EndObject |
2 | Indicates that the token type is the end of a YAML object. |
StartArray |
3 | Indicates that the token type is the start of a YAML array. |
EndArray |
4 | Indicates that the token type is the end of a YAML array. |
PropertyName |
5 | Indicates that the token type is a YAML property name. |
Comment |
6 | Indicates that the token type is the comment string. |
String |
7 | Indicates that the token type is a YAML string. |
Number |
8 | Indicates that the token type is a YAML number. |
True |
9 | Indicates that the token type is the YAML literal true. |
False |
10 | Indicates that the token type is the YAML literal false. |
Null |
11 | Indicates that the token type is the YAML literal null. |
Alias |
12 | Indicates that the token is a YAML alias (*name). Utf8YamlReader.ValueSpan holds the anchor name. Only produced by the YAML grammar. |