Beispiel #1
0
        static void Main(string[] args)
        {
            StrAggregate agg = new StrAggregate();

            foreach (string item in agg)
            {
                Console.Write(item);
            }
            Console.WriteLine();

            EasyStrAggregate easyAgg = new EasyStrAggregate();

            foreach (string item in easyAgg)
            {
                Console.Write(item);
            }
            Console.WriteLine();
        }
Beispiel #2
0
 public StrIterator(StrAggregate strAggregate)
 {
     this.strAggregate = strAggregate;
 }