/// <summary>
/// 清除字符串所有位置的空格
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public static string StringClearSpace(string input)
{
char[] ch = input.ToArray();
string text = "";
foreach (var item in ch)
{
if (item != ' ')
text += item;
}
return text;
}
后续再优化