TomlProperty Struct
Definition
Represents a single key/value pair within a table TomlElement. Instances are produced by TomlElement.ObjectEnumerator.
public readonly struct TomlProperty
- Inherited Members
- Extension Methods
Remarks
The Value is a view onto the owning TomlDocument and is valid only for that document's lifetime; after the document is disposed, accessing the value throws ObjectDisposedException.
Properties
Name
Gets the property name, decoded from the table key.
public string Name { get; }
Property Value
- string
The property name.
Value
Gets the property value.
public TomlElement Value { get; }
Property Value
- TomlElement
A TomlElement view of the value.
Methods
ToString()
Returns the property name.
public override string ToString()
Returns
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |