Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Create()

XPathNodeInfoAtom MS.Internal.Xml.Cache.XPathNodeInfoTable.Create ( string localName,
string namespaceUri,
string prefix,
string baseUri,
XPathNode[] pageParent,
XPathNode[] pageSibling,
XPathNode[] pageSimilar,
XPathDocument doc,
int lineNumBase,
int linePosBase )
inline

Definition at line 20 of file XPathNodeInfoTable.cs.

21 {
22 XPathNodeInfoAtom xPathNodeInfoAtom;
23 if (_infoCached == null)
24 {
25 xPathNodeInfoAtom = new XPathNodeInfoAtom(localName, namespaceUri, prefix, baseUri, pageParent, pageSibling, pageSimilar, doc, lineNumBase, linePosBase);
26 }
27 else
28 {
29 xPathNodeInfoAtom = _infoCached;
30 _infoCached = xPathNodeInfoAtom.Next;
31 xPathNodeInfoAtom.Init(localName, namespaceUri, prefix, baseUri, pageParent, pageSibling, pageSimilar, doc, lineNumBase, linePosBase);
32 }
33 return Atomize(xPathNodeInfoAtom);
34 }
void Init(string localName, string namespaceUri, string prefix, string baseUri, XPathNode[] pageParent, XPathNode[] pageSibling, XPathNode[] pageSimilar, XPathDocument doc, int lineNumBase, int linePosBase)
XPathNodeInfoAtom Atomize(XPathNodeInfoAtom info)

References MS.Internal.Xml.Cache.XPathNodeInfoTable._infoCached, MS.Internal.Xml.Cache.XPathNodeInfoTable.Atomize(), MS.Internal.Xml.Cache.XPathNodeInfoAtom.Init(), and MS.Internal.Xml.Cache.XPathNodeInfoAtom.Next.

Referenced by MS.Internal.Xml.Cache.XPathDocumentBuilder.NewNamespaceNode(), MS.Internal.Xml.Cache.XPathDocumentBuilder.NewNode(), MS.Internal.Xml.Cache.XPathNode.SetSibling(), and MS.Internal.Xml.Cache.XPathNode.SetSimilarElement().