Exemplo n.º 1
0
        public void Pop()
        {
            XmlNodeBorrow xnb = this.stack.Pop();

            this.curNode = xnb.node;
            this.borrow  = xnb.borrow;
        }
Exemplo n.º 2
0
        public void Push()
        {
            if (this.stack == null)
            {
                this.stack = new Stack <XmlNodeBorrow>();
            }

            XmlNodeBorrow xnb = new XmlNodeBorrow();

            xnb.node   = this.curNode;
            xnb.borrow = this.borrow;
            this.stack.Push(xnb);
        }