System.CSharpHelpers.CreateEscapedIdentifier C# (CSharp) Method

CreateEscapedIdentifier() public static method

public static CreateEscapedIdentifier ( string name ) : string
name string
return string
        public static string CreateEscapedIdentifier(string name)
        {
            // Any identifier started with two consecutive underscores are 
            // reserved by CSharp.
            if (IsKeyword(name) || IsPrefixTwoUnderscore(name))
            {
                return "@" + name;
            }
            return name;
        }