Table of Contents

YamlElement.SequenceEnumerator Struct

Definition

Namespace
Bodu.Text.Yaml.Document
Assembly
Bodu.Text.Yaml.dll
Package
Bodu.Text.Yaml 1.0.0
Source
YamlElement.MappingEnumerator.cs

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

bool

true when an element is available; otherwise false.

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

ProductVersions
.NET8, 10