Exemple #1
0
        public void Run()
        {
            int        arraySize  = 10;
            Aggergator aggregator = new Aggergator(arraySize);

            for (int loop = 0; loop < arraySize; loop++)
            {
                aggregator[loop] = "Text - " + loop;
            }

            Iterator i = aggregator.GetIterator();

            while (i.Current() != null)
            {
                Console.WriteLine(i.Current());
                i.Next();
            }
        }
 public ConcreateIterator(Aggergator aggergator)
 {
     this.aggergator = aggergator;
 }