Exemple #1
0
        private static void TestResizingArrayStack()
        {
            Collection.StackByResizingArray <IntItem> resizingArrayStack = new Collection.StackByResizingArray <IntItem>();
            resizingArrayStack
            .Push(new IntItem(1))
            .Push(new IntItem(2))
            .Push(new IntItem(3))
            .Push(new IntItem(4))
            .Push(new IntItem(5))
            .Push(new IntItem(6));
            string s = "";

            resizingArrayStack.Foreach((i) => { s += i.IntValue; });
            Console.WriteLine(s);
            Console.ReadKey();
        }
 public ResizingArrayIterator(StackByResizingArray <Item> resizingArrayStack, int count)
 {
     ResizingArray = resizingArrayStack;
     ItorCounter   = count;
 }