System.Xml.Xsl.Runtime.XPathPrecedingDocOrderIterator.PushAncestors C# (CSharp) Method

PushAncestors() private method

Push all ancestors of this.navCurrent onto a stack. The set of preceding nodes should not contain any of these ancestors.
private PushAncestors ( ) : void
return void
        private void PushAncestors() {
            this.navStack.Reset();
            do {
                this.navStack.Push(this.navCurrent.Clone());
            }
            while (this.navCurrent.MoveToParent());

            // Pop the root of the tree, since MoveToFollowing calls will never return it
            this.navStack.Pop();
        }
    }
XPathPrecedingDocOrderIterator