![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Collection Classes - slide 34 : 36 |
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.
![]() | Explicit use of iterator - instead of using foreach |
![]() | Using multiple interators |