System.CSharpHelpers.CreateEscapedIdentifier C# (CSharp) Метод

CreateEscapedIdentifier() публичный статический Метод

public static CreateEscapedIdentifier ( string name ) : string
name string
Результат 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;
        }