MoveNext() public method

Position this iterator to the next preceding node. Return false if there are no more preceding nodes. Return true if the Current property is set to the next node in the iteration.
public MoveNext ( ) : bool
return bool
コード例 #1
0
        /// <summary>
        /// Initialize the XPathPrecedingIterator (no possibility of duplicates).
        /// </summary>
        public void Create(XPathNavigator context, XmlNavigatorFilter filter)
        {
            XPathPrecedingDocOrderIterator wrapped = new XPathPrecedingDocOrderIterator();

            wrapped.Create(context, filter);

            // Fetch all preceding nodes in document order and push them onto the stack
            while (wrapped.MoveNext())
            {
                stack.Push(wrapped.Current.Clone());
            }
        }
コード例 #2
0
        /// <summary>
        /// Initialize the XPathPrecedingIterator (no possibility of duplicates).
        /// </summary>
        public void Create(XPathNavigator context, XmlNavigatorFilter filter) {
            XPathPrecedingDocOrderIterator wrapped = new XPathPrecedingDocOrderIterator();

            wrapped.Create(context, filter);

            // Fetch all preceding nodes in document order and push them onto the stack
            while (wrapped.MoveNext())
                stack.Push(wrapped.Current.Clone());
        }