Table of Contents

TomlProperty Struct

Definition

Namespace
Bodu.Text.Toml.Document
Assembly
Bodu.Text.Toml.dll
Package
Bodu.Text.Toml 1.0.0
Source
TomlProperty.cs

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

string

The value of Name.

Applies to

ProductVersions
.NET8, 10