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

◆ GetDepth()

static int System.Xml.Linq.XNodeReader.GetDepth ( XObject o)
inlinestaticprivate

Definition at line 383 of file XNodeReader.cs.

384 {
385 int num = 0;
386 while (o.parent != null)
387 {
388 num++;
389 o = o.parent;
390 }
391 if (o is XDocument)
392 {
393 num--;
394 }
395 return num;
396 }

References System.Xml.Dictionary.