System.Xml.XmlElementList.ConcurrencyCheck C# (CSharp) Méthode

ConcurrencyCheck() private méthode

private ConcurrencyCheck ( XmlNodeChangedEventArgs args ) : void
args XmlNodeChangedEventArgs
Résultat void
        internal void ConcurrencyCheck(XmlNodeChangedEventArgs args){
            if( atomized == false ) {
                XmlNameTable nameTable = this.rootNode.Document.NameTable;
                this.localName = nameTable.Add( this.localName );
                this.namespaceURI = nameTable.Add( this.namespaceURI );
                this.atomized = true;
            }                
            if ( IsMatch( args.Node ) ) {
                this.changeCount++ ;
                this.curInd = -1;
                this.curElem = rootNode;
                if( args.Action == XmlNodeChangedAction.Insert )
                    this.empty = false;
            }
            this.matchCount = -1;
        }

Usage Example

Exemple #1
0
        private void OnListChanged(object sender, XmlNodeChangedEventArgs args)
        {
            XmlElementList elemList = (XmlElementList)this.elemList.Target;

            if (null != elemList)
            {
                elemList.ConcurrencyCheck(args);
            }
            else
            {
                this.doc.NodeInserted -= this.nodeChangeHandler;
                this.doc.NodeRemoved  -= this.nodeChangeHandler;
            }
        }
All Usage Examples Of System.Xml.XmlElementList::ConcurrencyCheck