System.Xml.Xsl.Runtime.XmlNavigatorStack.Reset C# (CSharp) Method

Reset() public method

Remove all navigators from the stack
public Reset ( ) : void
return void
        public void Reset() {
            this.sp = 0;
        }

Usage Example

Exemplo n.º 1
0
        private void PushAncestors()
        {
            _navStack.Reset();
            do
            {
                _navStack.Push(_navCurrent.Clone());
            }while (_navCurrent.MoveToParent());

            // Pop the root of the tree, since MoveToFollowing calls will never return it
            _navStack.Pop();
        }
All Usage Examples Of System.Xml.Xsl.Runtime.XmlNavigatorStack::Reset