private string GetParamName() { var stringBuilder = new StringBuilder(); ColumnName.Where(c => (c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) .ForEach(c => stringBuilder.Append(c)); return(stringBuilder.ToString()); }