YamlElement.MappingEnumerator Struct
Definition
- Assembly
- Bodu.Text.Yaml.dll
- Package
- Bodu.Text.Yaml 1.0.0
Provides forward-only enumeration over the key/value pairs of a mapping node.
public struct YamlElement.MappingEnumerator : IEnumerable<YamlProperty>, IEnumerable, IEnumerator<YamlProperty>, IEnumerator, IDisposable
- Implements
- Inherited Members
- Extension Methods
Properties
Current
Gets the key/value pair at the current position.
public readonly YamlProperty Current { get; }
Property Value
- YamlProperty
The current pair.
Methods
Dispose()
Releases resources held by the enumerator.
public readonly void Dispose()
GetEnumerator()
Returns this enumerator.
public readonly YamlElement.MappingEnumerator GetEnumerator()
Returns
- YamlElement.MappingEnumerator
A fresh enumerator positioned before the first pair.
MoveNext()
Advances to the next pair.
public bool MoveNext()
Returns
Reset()
Resets the enumerator to its initial position.
public void Reset()
Explicit Interface Implementations
IEnumerable<YamlProperty>.GetEnumerator()
Returns an enumerator that iterates through the collection.
readonly IEnumerator<YamlProperty> IEnumerable<YamlProperty>.GetEnumerator()
Returns
- IEnumerator<YamlProperty>
An enumerator that can be used to iterate through the collection.
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
readonly IEnumerator IEnumerable.GetEnumerator()
Returns
- IEnumerator
An IEnumerator object that can be used to iterate through the collection.
IEnumerator.Current
Gets the pair at the current position.
readonly object IEnumerator.Current { get; }
Returns
- object
The current pair, boxed.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |