System.CSharpHelpers.CreateEscapedIdentifier C# (CSharp) Méthode

CreateEscapedIdentifier() public static méthode

public static CreateEscapedIdentifier ( string name ) : string
name string
Résultat 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;
        }