System.Xml.XmlNodeReaderNavigator.ResetMove C# (CSharp) Méthode

ResetMove() public méthode

public ResetMove ( int &level, System.Xml.XmlNodeType &nt ) : void
level int
nt System.Xml.XmlNodeType
Résultat void
            public void ResetMove( ref int level, ref XmlNodeType nt ) {
                LogMove( level );
                if( this.bCreatedOnAttribute )
                    return;
                if ( nAttrInd != -1 ) {
                    Debug.Assert( IsOnDeclOrDocType );
                    if ( this.bOnAttrVal ) {
                        level--;
                        this.bOnAttrVal = false;
                    }
                    nLogAttrInd = nAttrInd;
                    level--;
                    nAttrInd = -1;
                    nt = curNode.NodeType;
                    return;
                }
                if ( this.bOnAttrVal && curNode.NodeType != XmlNodeType.Attribute )
                    ResetToAttribute( ref level );
                if ( curNode.NodeType == XmlNodeType.Attribute ) {
                    curNode = ((XmlAttribute)curNode).OwnerElement;
                    attrIndex = -1;
                    level--;
                    nt = XmlNodeType.Element;
                }
                if ( curNode.NodeType == XmlNodeType.Element )
                    elemNode = curNode;
            }