MS.Internal.Xml.Cache.XPathNodeInfoAtom.Init C# (CSharp) Метод

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

Initialize an existing shared information atom. This method should only be used by the XNodeInfoTable.
public Init ( string localName, string namespaceUri, string prefix, string baseUri, XPathNode pageParent, XPathNode pageSibling, XPathNode pageSimilar, XPathDocument doc, int lineNumBase, int linePosBase ) : void
localName string
namespaceUri string
prefix string
baseUri string
pageParent XPathNode
pageSibling XPathNode
pageSimilar XPathNode
doc System.Xml.XPath.XPathDocument
lineNumBase int
linePosBase int
Результат void
        public void Init(string localName, string namespaceUri, string prefix, string baseUri,
                         XPathNode[] pageParent, XPathNode[] pageSibling, XPathNode[] pageSimilar,
                         XPathDocument doc, int lineNumBase, int linePosBase) {
            Debug.Assert(localName != null && namespaceUri != null && prefix != null && doc != null);

            this.localName = localName;
            this.namespaceUri = namespaceUri;
            this.prefix = prefix;
            this.baseUri = baseUri;
            this.pageParent = pageParent;
            this.pageSibling = pageSibling;
            this.pageSimilar = pageSimilar;
            this.doc = doc;
            this.lineNumBase = lineNumBase;
            this.linePosBase = linePosBase;
            this.next = null;
            this.pageInfo = null;

            this.hashCode = 0;
            this.localNameHash = 0;
            for (int i = 0; i < this.localName.Length; i++)
                this.localNameHash += (this.localNameHash << 7) ^ this.localName[i];
        }

Usage Example

 public XPathNodeInfoAtom Create(string localName, string namespaceUri, string prefix, string baseUri, XPathNode[] pageParent, XPathNode[] pageSibling, XPathNode[] pageSimilar, XPathDocument doc, int lineNumBase, int linePosBase)
 {
     XPathNodeInfoAtom infoCached;
     if (this.infoCached == null)
     {
         infoCached = new XPathNodeInfoAtom(localName, namespaceUri, prefix, baseUri, pageParent, pageSibling, pageSimilar, doc, lineNumBase, linePosBase);
     }
     else
     {
         infoCached = this.infoCached;
         this.infoCached = infoCached.Next;
         infoCached.Init(localName, namespaceUri, prefix, baseUri, pageParent, pageSibling, pageSimilar, doc, lineNumBase, linePosBase);
     }
     return this.Atomize(infoCached);
 }
All Usage Examples Of MS.Internal.Xml.Cache.XPathNodeInfoAtom::Init