KeySyntax Class

A key TOML syntax node.

public sealed class KeySyntax : ValueSyntax
Inheritance
ValueSyntax KeySyntax

Constructors

NameDescription
KeySyntax()Creates a new instance of a KeySyntax
KeySyntax(string)Creates a new instance of a KeySyntax
KeySyntax(string, string)Creates a new instance of a KeySyntax

KeySyntax overloads

KeySyntax()

KeySyntax.cs

Creates a new instance of a KeySyntax

public KeySyntax()

KeySyntax(string)

KeySyntax.cs

Creates a new instance of a KeySyntax

public KeySyntax(string key)
Parameters
key string
A simple name of this key

KeySyntax(string, string)

KeySyntax.cs

Creates a new instance of a KeySyntax

public KeySyntax(string key, string dotKey1)
Parameters
key string
the base key
dotKey1 string
the key after the dot

Properties

NameDescription
ChildrenCountGets the number of children.
DotKeysList of the dotted keys.
KeyThe base of the key before the dot

ChildrenCount

KeySyntax.cs

Gets the number of children.

public override int ChildrenCount { get; }

Property value

int

List of the dotted keys.

public SyntaxList<DottedKeyItemSyntax> DotKeys { get; }

The base of the key before the dot

public BareKeyOrStringValueSyntax? Key { get; set; }

Methods

NameDescription
Accept(SyntaxVisitor)Allow to visit this instance with the specified visitor.

Accept(SyntaxVisitor)

KeySyntax.cs

Allow to visit this instance with the specified visitor.

public override void Accept(SyntaxVisitor visitor)

Parameters

visitor SyntaxVisitor
The visitor