C#去除字符串中的空格,回车,换行符,制表符

string l_strResult = 你的字符串.Replace("\n", "").Replace(" ","").Replace("\t","").Replace("\r","");

猜你喜欢

转载自www.cnblogs.com/yinmu/p/11076299.html