System.Xml.XPath.XPathNavigatorReader.MoveToFirstAttribute C# (CSharp) Метод

MoveToFirstAttribute() публичный Метод

public MoveToFirstAttribute ( ) : bool
Результат bool
        public override bool MoveToFirstAttribute() {
            int depth;
            XPathNavigator nav = GetElemNav(out depth);
            if (null != nav) {
                if ( nav.MoveToFirstNamespace( XPathNamespaceScope.Local ) ) {
                    // attributes are in reverse order
                    while ( nav.MoveToNextNamespace( XPathNamespaceScope.Local ) )
                        ;
                    goto FoundMatch;
                }
                if ( nav.MoveToFirstAttribute() ) {
                    goto FoundMatch;
                }
            }
            return false; 
        FoundMatch:
            if ( state == State.InReadBinary ) {
                readBinaryHelper.Finish();
                state = savedState;
            }
            MoveToAttr(nav, depth+1);
            return true;
        }