CSScriptCompilers.CCSharpParser.FixString C# (CSharp) Méthode

FixString() private méthode

private FixString ( string text ) : string
text string
Résultat string
        string FixString(string text)
        {
            string retval = text;

            foreach (char c in @" !@#$%^&*()+|\~`,./'"":;{[}]".ToCharArray())
                retval = retval.Replace(c, '_');

            return retval.Insert(0, "auto_"); //to ensure the string does not started with a numeric character as C# compiler does not like it when string used as namespace
        }