MoveFirst() static private method

Position "nav" to the matching node which follows it in document order but is not a descendant node. Return false if this is no such matching node.
static private MoveFirst ( XmlNavigatorFilter filter, XPathNavigator nav ) : bool
filter XmlNavigatorFilter
nav System.Xml.XPath.XPathNavigator
return bool
Exemplo n.º 1
0
        private IteratorResult MoveFirst()
        {
            Debug.Assert(_state == IteratorState.HaveCurrentHaveNext || _state == IteratorState.HaveCurrentNoNext);

            if (!XPathFollowingIterator.MoveFirst(_filter, _navCurrent))
            {
                return(MoveFailed());
            }

            return(IteratorResult.HaveCurrentNode);
        }