IEnumerator<T>.MoveNext Method

Definition

Advances the enumerator to the next element of the collection.

Delphi
function MoveNext: Boolean

Returns

Boolean

True if the enumerator was successfully advanced to the next element; False if the enumerator has passed the end of the collection.

Exceptions

The collection was modified after the enumerator was created.

Remarks

If MoveNext passes the end of the collection, the enumerator is positioned after the last element in the collection and MoveNext returns False . When the enumerator is at this position, subsequent calls to MoveNext also return False .