Mid From PDF GoF Patterns Gang of Four Patterns

Aggregate Interface (IAggregate<T>):?

  • The IAggregate<T> interface defines a method CreateIterator() that
returns an iterator instance. Any class that represents a collection should

implement this interface to provide an iterator.

public interface IAggregate<T>
{

IIterator<T> CreateIterator();

}

More from Design Patterns in C#

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details