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

◆ UniqueId

override string MS.Internal.Xml.Cache.XPathDocumentNavigator.UniqueId
getpackage

Definition at line 115 of file XPathDocumentNavigator.cs.

116 {
117 get
118 {
119 char[] array = new char[16];
120 int length = 0;
122 int num;
123 if (_idxParent != 0)
124 {
125 num = (_pageParent[0].PageInfo.PageNumber - 1 << 16) | (_idxParent - 1);
126 do
127 {
128 array[length++] = XPathNavigator.UniqueIdTbl[num & 0x1F];
129 num >>= 5;
130 }
131 while (num != 0);
132 array[length++] = '0';
133 }
134 num = (_pageCurrent[0].PageInfo.PageNumber - 1 << 16) | (_idxCurrent - 1);
135 do
136 {
137 array[length++] = XPathNavigator.UniqueIdTbl[num & 0x1F];
138 num >>= 5;
139 }
140 while (num != 0);
141 return new string(array, 0, length);
142 }
143 }
static readonly char[] NodeTypeLetter
static readonly char[] UniqueIdTbl
XPathNodePageInfo PageInfo
Definition XPathNode.cs:51