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

◆ Substring()

virtual string System.Xml.XmlCharacterData.Substring ( int offset,
int count )
inlinevirtualinherited

Definition at line 80 of file XmlCharacterData.cs.

81 {
82 int num = ((_data != null) ? _data.Length : 0);
83 if (num > 0)
84 {
85 if (num < offset + count)
86 {
87 count = num - offset;
88 }
89 return _data.Substring(offset, count);
90 }
91 return string.Empty;
92 }

References System.Xml.XmlCharacterData._data, System.count, and System.offset.

Referenced by System.Xml.XmlText.SplitText().