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

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

猜你喜欢

转载自blog.csdn.net/alone_ws/article/details/86470126