Example #1
0
 protected static string CleanVariableName(string variableName)
 {
     foreach (char ch in CharactersToReplaceWithUnderscore)
     {
         variableName = variableName.Replace(ch, '_');
     }
     variableName = string.Concat(variableName.Split(CharactersToRemove, StringSplitOptions.None));
     return(Naming.Clean(variableName));
 }
        public string GetNiceName()
        {
            string str = this._objectVariableName;

            if (this._field != null)
            {
                str = str + "_" + this._field.Name;
            }
            if (this._indexVariableName != null)
            {
                str = str + "_item";
            }
            return(Naming.Clean(str.Replace("*", string.Empty)));
        }