CSScriptCompilers.CCSharpParser.FixString C# (CSharp) 메소드

FixString() 개인적인 메소드

private FixString ( string text ) : string
text string
리턴 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
        }