System.Xml.XmlNodeReaderNavigator.ResetToAttribute C# (CSharp) Method

ResetToAttribute() public method

public ResetToAttribute ( int &level ) : void
level int
return void
            public void ResetToAttribute( ref int level ) {
                //the current cursor is pointing at one of the attribute children -- this could be caused by
                //  the calls to ReadAttributeValue(..)
                if( this.bCreatedOnAttribute )
                    return;
                if ( this.bOnAttrVal ) {
                    if ( IsOnDeclOrDocType ) {
                        level-=2;
                    } else {
                        while ( curNode.NodeType != XmlNodeType.Attribute && ( ( curNode = curNode.ParentNode ) != null ) )
                            level-- ;
                    }
                    this.bOnAttrVal = false;
                }
            }