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

◆ LastNode

XNode? System.Xml.Linq.XContainer.LastNode
getinherited

Definition at line 429 of file XContainer.cs.

430 {
431 get
432 {
433 if (content == null)
434 {
435 return null;
436 }
437 if (content is XNode result)
438 {
439 return result;
440 }
441 if (content is string text)
442 {
443 if (text.Length == 0)
444 {
445 return null;
446 }
447 XText xText = new XText(text);
448 xText.parent = this;
450 Interlocked.CompareExchange<object>(ref content, (object)xText, (object)text);
451 }
452 return (XNode)content;
453 }
454 }
static int CompareExchange(ref int location1, int value, int comparand)

Referenced by System.Xml.Linq.XContainer.Nodes().