Design Pattern – Iterator

C# CONCEPTSAccording to Gang of Four, the iterator pattern provides a process to obtain the aggregator object without knowing its implementation.Use CaseLet us take an example of a collection list of cars and string[] an array of motorcycles, we need to design an aggregator object so that one can iterate over the collection without knowing … Continue reading Design Pattern – Iterator