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

XmlNodeReaderNavigator() public méthode

public XmlNodeReaderNavigator ( XmlNode node ) : System
node XmlNode
Résultat System
            public XmlNodeReaderNavigator( XmlNode node ) {
                curNode = node;
                logNode = node;
                XmlNodeType nt = curNode.NodeType;
                if ( nt == XmlNodeType.Attribute ) {
                    elemNode = null;
                    attrIndex = -1;
                    bCreatedOnAttribute = true;
                }
                else {
                    elemNode = node;
                    attrIndex = -1;
                    bCreatedOnAttribute = false;
                }
                //presave this for pref reason since it shouldn't change.
                if ( nt == XmlNodeType.Document )
                    this.doc = (XmlDocument)curNode;
                else
                    this.doc = node.OwnerDocument;
                this.nameTable = doc.NameTable;
                this.nAttrInd = -1;
                //initialize the caching variables
                this.nDeclarationAttrCount = -1;
                this.nDocTypeAttrCount = -1;
                this.bOnAttrVal = false;
                this.bLogOnAttrVal = false;
            }