TomlKeyValue Class

A key/value pair of a document, with the full key it defines: the header it is under, its own key, and the inline tables it is in.

public sealed class TomlKeyValue

Remarks

In [dependencies.tokio] followed by version = "1.0", the pair version = "1.0" has the names dependencies, tokio, and version, as it would in dependencies.tokio.version = "1.0" or in tokio = { version = "1.0" } under [dependencies].

The key/value pairs of every table of an array of tables have the same names: TomlKeyValue.Table tells them apart.

Properties

NameDescription
NamesGets the name of each part of the full key, with quotes removed and escape sequences resolved.
PartsGets the token that writes each of TomlKeyValue.Names, in the header, the key, or the key of an inline table.
PropertyGets the key/value pair, which is in an inline table when the value is.
TableGets the header the key/value pair is under, or null for one of the root table.
ValueGets the value.

Gets the name of each part of the full key, with quotes removed and escape sequences resolved.

public IReadOnlyList<string> Names { get; }

Property value

IReadOnlyList<string>

Gets the token that writes each of TomlKeyValue.Names, in the header, the key, or the key of an inline table.

public IReadOnlyList<SyntaxToken> Parts { get; }

Gets the key/value pair, which is in an inline table when the value is.

public TomlPropertySyntax Property { get; }

Property value

TomlPropertySyntax

Gets the header the key/value pair is under, or null for one of the root table.

public TomlTableSyntax? Table { get; }

Property value

TomlTableSyntax?

Gets the value.

public TomlValueSyntax Value { get; }

Property value

TomlValueSyntax

Methods

NameDescription
ToString()

ToString()

TomlKeyValue.cs
public override string ToString()

Returns

string

No documentation is available.