public ConcreteIterator(ConcreteList list)
 {
     this.list = list;
     index = 0;
 }
        public CommonIterator()
        {
            IIterator iterator;
            IList list = new ConcreteList();
            iterator = list.GetIterator();

            while (iterator.MoveNext())
            {
                var i = (int) iterator.CurrentItem();
                Console.WriteLine(i.ToString());
                iterator.Next();
            }
        }