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

◆ SplitName()

static void System.Xml.XmlNode.SplitName ( string name,
out string prefix,
out string localName )
inlinestaticpackageinherited

Definition at line 1212 of file XmlNode.cs.

1213 {
1214 int num = name.IndexOf(':');
1215 if (-1 == num || num == 0 || name.Length - 1 == num)
1216 {
1217 prefix = string.Empty;
1218 localName = name;
1219 }
1220 else
1221 {
1222 prefix = name.Substring(0, num);
1223 localName = name.Substring(num + 1);
1224 }
1225 }

References System.prefix.

Referenced by System.Xml.XmlDocument.CreateAttribute(), System.Xml.XmlDocument.CreateAttribute(), System.Xml.XmlDocument.CreateElement(), and System.Xml.XmlDocument.CreateElement().