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

◆ CreateEscapedIdentifier()

static string System.CSharpHelpers.CreateEscapedIdentifier ( string name)
inlinestatic

Definition at line 21 of file CSharpHelpers.cs.

22 {
23 if (IsKeyword(name) || IsPrefixTwoUnderscore(name))
24 {
25 return "@" + name;
26 }
27 return name;
28 }
static bool IsKeyword(string value)
static bool IsPrefixTwoUnderscore(string value)

References System.CSharpHelpers.IsKeyword(), and System.CSharpHelpers.IsPrefixTwoUnderscore().

Referenced by System.Xml.Serialization.CodeIdentifier.EscapeKeywords().