TomlTableSyntax Class
A table header such as [database], or an array-of-tables header such as [[products]].
public sealed class TomlTableSyntax : TomlEntrySyntaxRemarks
A header is an entry of the document like any other: the key/value pairs under it are the entries that follow it, up to the next header. TomlTableSyntax.Properties gathers them.
- Inheritance
TomlEntrySyntaxTomlTableSyntax
Properties
| Name | Description |
|---|---|
| CloseBracketToken | Gets ], or ]] for an array of tables. |
| IsArrayOfTables | Gets a value indicating whether this is an array-of-tables header such as [[products]]. |
| Key | Gets the name of the table. |
| OpenBracketToken | Gets [, or [[ for an array of tables. |
| Properties | Gets the key/value pairs under this header: the ones that follow it, up to the next header. |
CloseBracketToken
TomlTableSyntax.csIsArrayOfTables
TomlTableSyntax.csOpenBracketToken
TomlTableSyntax.csProperties
TomlTableSyntax.csGets the key/value pairs under this header: the ones that follow it, up to the next header.
public IReadOnlyList<TomlPropertySyntax> Properties { get; }Property value
IReadOnlyList<TomlPropertySyntax>
Remarks
A header that is not part of a document has none.
Methods
| Name | Description |
|---|---|
| Accept(TomlSyntaxVisitor) | |
| Accept<TResult>(TomlSyntaxVisitor<TResult>) | |
| Update(SyntaxToken, TomlKeySyntax, SyntaxToken) | Returns this header with the given parts, or itself when nothing changed. |
| WithCloseBracketToken(SyntaxToken) | |
| WithKey(TomlKeySyntax) | |
| WithOpenBracketToken(SyntaxToken) |
Accept overloads
Accept(TomlSyntaxVisitor)
TomlTableSyntax.cspublic override void Accept(TomlSyntaxVisitor visitor)Parameters
visitorTomlSyntaxVisitor
No documentation is available.
Accept<TResult>(TomlSyntaxVisitor<TResult>)
TomlTableSyntax.cspublic override TResult? Accept<TResult>(TomlSyntaxVisitor<TResult> visitor)No documentation is available.
Update(SyntaxToken, TomlKeySyntax, SyntaxToken)
TomlTableSyntax.csReturns this header with the given parts, or itself when nothing changed.
public TomlTableSyntax Update(SyntaxToken openBracketToken, TomlKeySyntax key, SyntaxToken closeBracketToken)Parameters
openBracketTokenSyntaxTokenkeyTomlKeySyntaxcloseBracketTokenSyntaxToken
Returns
Exceptions
ArgumentNullExceptionkeyisnull.
Remarks
Whether it is an array-of-tables header follows openBracketToken.
WithCloseBracketToken(SyntaxToken)
TomlTableSyntax.cspublic TomlTableSyntax WithCloseBracketToken(SyntaxToken closeBracketToken)No documentation is available.
WithKey(TomlKeySyntax)
TomlTableSyntax.cspublic TomlTableSyntax WithKey(TomlKeySyntax key)No documentation is available.
WithOpenBracketToken(SyntaxToken)
TomlTableSyntax.cspublic TomlTableSyntax WithOpenBracketToken(SyntaxToken openBracketToken)No documentation is available.