TomlProperty Struct
A key and its value in a table of a TomlDocument.
public readonly struct TomlPropertyProperties
| Name | Description |
|---|---|
| Name | Gets the decoded key. |
| NameFlags | Gets how the key is written: bare, or quoted. |
| Value | Gets the value. |
Name
TomlProperty.csNameFlags
TomlProperty.csGets how the key is written: bare, or quoted.
public Utf8TomlTokenFlags NameFlags { get; }Property value
Value
TomlProperty.csMethods
| Name | Description |
|---|---|
| NameEquals(ReadOnlySpan<byte>) | Compares the key to UTF-8 text, without allocating. |
| NameEquals(ReadOnlySpan<char>) | Compares the key to text, without allocating. |
| NameEquals(string?) | Compares the key to text, without allocating. |
| ToString() | Returns the fully qualified type name of this instance. |
NameEquals overloads
NameEquals(ReadOnlySpan<byte>)
TomlProperty.csCompares the key to UTF-8 text, without allocating.
public bool NameEquals(ReadOnlySpan<byte> utf8Text)NameEquals(ReadOnlySpan<char>)
TomlProperty.csCompares the key to text, without allocating.
public bool NameEquals(ReadOnlySpan<char> text)