Tag: MoveNext
-
Iterators in C#: yield, IEnumerable & IEnumerator
—
Iterating over lists in C# is often done using for loops. This tutorial shows how the foreach construct can be coupled with the yield statement to create more elegant and safe code.