IEnumerator and its generic counterpart IEnumerator<T> are .NET interfaces which facilitate iteration through items in a collection.

- Stackoverflow.com Wiki
1 articles, 0 books.

In .NET the iterator pattern is exposed via an IEnumerator and there is some syntactic sugar so that you can create an iterator method using yield return. There is also syntactic sugar surrounding the consumption of iterators via foreach. This almost completely hides the complexities of IEnumerator implementations.