Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Collections.​IEnumerator

Assembly: System.Runtime

Supports a simple iteration over a non-generic collection.

Properties

public object
Current
Gets the element in the collection at the current position of the enumerator.

Methods

public bool
MoveNext​()
Returns <see langword="true" /> if the enumerator was successfully advanced to the next element; <see langword="false" /> if the enumerator has passed the end of the collection.
Advances the enumerator to the next element of the collection.
public void
Reset​()
Sets the enumerator to its initial position, which is before the first element in the collection.