Mid GoF Patterns

Iterator Interface (IIterator<T>):?

  • The IIterator<T> interface defines the contract for all iterators. It ensures

that all iterators implement the basic functionality of checking for the next

element (HasNext()) and returning the next element (Next()).

More from Design Patterns in C#

All questions for this course