Ejemplo n.º 1
0
        /// <summary>
        /// Push the items from a stack onto a stack.
        /// </summary>
        /// <param name="Stack"></param>
        public void Push(ExStack <T> Stack)
        {
            // reverse the incoming stack
            Stack.Reverse();

            // pop the incoming stack and push on to this stack
            for (int i = 0; i < Stack.Count; i++)
            {
                Push(Stack.Pop());
            }
        }