enumerator

The object that walks a sequence, with MoveNext to advance and Current to read the item it is on.

In more detail

foreach asks a collection for its enumerator and calls MoveNext each pass. You rarely use it directly.

Related terms

Taught in

References