InlineTableSyntax Class

An inline table TOML syntax node.

public sealed class InlineTableSyntax : ValueSyntax
Inheritance
ValueSyntax InlineTableSyntax

Constructors

NameDescription
InlineTableSyntax()Creates a new instance of an InlineTableSyntax
InlineTableSyntax(KeyValueSyntax[])Creates a new instance of an InlineTableSyntax

InlineTableSyntax overloads

InlineTableSyntax()

InlineTableSyntax.cs

Creates a new instance of an InlineTableSyntax

public InlineTableSyntax()

InlineTableSyntax(KeyValueSyntax[])

InlineTableSyntax.cs

Creates a new instance of an InlineTableSyntax

public InlineTableSyntax(params KeyValueSyntax[] keyValues)
Parameters
keyValues KeyValueSyntax[]
The key values of this inline table

Properties

NameDescription
ChildrenCountGets the number of children.
CloseBraceThe token close brace `}`
ItemsThe items of this table.
OpenBraceThe token open brace `{`

Gets the number of children.

public override int ChildrenCount { get; }

Property value

int

The token close brace `}`

public SyntaxToken? CloseBrace { get; set; }

Property value

SyntaxToken?

The items of this table.

public SyntaxList<InlineTableItemSyntax> Items { get; }

The token open brace `{`

public SyntaxToken? OpenBrace { get; set; }

Property value

SyntaxToken?

Methods

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

Accept(SyntaxVisitor)

InlineTableSyntax.cs

Allow to visit this instance with the specified visitor.

public override void Accept(SyntaxVisitor visitor)

Parameters

visitor SyntaxVisitor
The visitor