static void Main(string[] args) { Aggregate aggregate = new ConcreteAggregate(); aggregate.add("hello"); aggregate.add("world"); aggregate.add("你好"); aggregate.add("世界"); Iterator iterator = aggregate.GetIterator(); while (iterator.hasNext()) { Console.WriteLine(iterator.next()); } Console.Read(); }