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

◆ GetTextOnly()

string System.Xml.Linq.XContainer.GetTextOnly ( )
inlineprivateinherited

Definition at line 902 of file XContainer.cs.

903 {
904 if (content == null)
905 {
906 return null;
907 }
908 string text = content as string;
909 if (text == null)
910 {
912 do
913 {
914 xNode = xNode.next;
915 if (xNode.NodeType != XmlNodeType.Text)
916 {
917 return null;
918 }
919 text += ((XText)xNode).Value;
920 }
921 while (xNode != content);
922 }
923 return text;
924 }

References System.Xml.Linq.XNode.XNode(), System.Xml.Linq.XContainer.content, and System.text.

Referenced by System.Xml.Linq.XContainer.ContentsEqual(), and System.Xml.Linq.XContainer.ContentsHashCode().