|
|
The Iterator Design Pattern |
The Iterator design pattern provides sequential access to an aggregated collection. Iterators are known as Enumerators in C#. |
|
In C# iterators are typically used indirectly, via foreach. Still, it is possible to used iterators directly. |
|
|