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

◆ EscapeKeywords() [1/2]

static string System.Xml.Serialization.CodeIdentifier.EscapeKeywords ( string identifier)
inlinestaticprivate

Definition at line 237 of file CodeIdentifier.cs.

238 {
239 if (identifier == null || identifier.Length == 0)
240 {
241 return identifier;
242 }
243 string[] array = identifier.Split('.', ',', '<', '>');
245 int num = -1;
246 for (int i = 0; i < array.Length; i++)
247 {
248 if (num >= 0)
249 {
250 stringBuilder.Append(identifier[num]);
251 }
252 num++;
253 num += array[i].Length;
254 string identifier2 = array[i].Trim();
256 }
257 if (stringBuilder.Length == identifier.Length)
258 {
259 return identifier;
260 }
261 return stringBuilder.ToString();
262 }
static void EscapeKeywords(string identifier, StringBuilder sb)

References System.array, System.Xml.Dictionary, and System.Xml.Serialization.CodeIdentifier.EscapeKeywords().