Iterator Design Pattern �(Behavioral)
Thanh Le – Software Architect / Technical Consultant
Complexity: 1/3
Popularity: 3/3
Intent
Image source: internet
Problem
Collections are one of the most used data types in programming. Most collections store their elements in simple lists. However, some of them are based on stacks, trees, graphs and other complex data structures.�
Image source: internet
Various types of collections
The same collection can be traversed in different ways
Solution
�
Image source: internet
Structure
Image source: internet
Pros/Cons
Practice
https://github.com/thanhle0212/23GoF-Design-Patterns-CSharp