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 TomlKeyValueRemarks
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
| Name | Description |
|---|---|
| Names | Gets the name of each part of the full key, with quotes removed and escape sequences resolved. |
| Parts | Gets the token that writes each of TomlKeyValue.Names, in the header, the key, or the key of an inline table. |
| Property | Gets the key/value pair, which is in an inline table when the value is. |
| Table | Gets the header the key/value pair is under, or null for one of the root table. |
| Value | Gets the value. |
Names
TomlKeyValue.csGets the name of each part of the full key, with quotes removed and escape sequences resolved.
public IReadOnlyList<string> Names { get; }Property value
Parts
TomlKeyValue.csGets 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; }Property value
Property
TomlKeyValue.csGets the key/value pair, which is in an inline table when the value is.
public TomlPropertySyntax Property { get; }Property value
Table
TomlKeyValue.csGets the header the key/value pair is under, or null for one of the root table.
public TomlTableSyntax? Table { get; }Property value
Value
TomlKeyValue.csMethods
| Name | Description |
|---|---|
| ToString() |