January 25, 2017
[TUTORIAL] Iterators in C#
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.
Part 1. Implementation
Part 2. The yield Statement
Part 3. Limitations
As always, thank you for your support. ♥
