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