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



string l_strResult =  str.Replace("
", "").Replace(" ","").Replace("	","").Replace("
","");



原文地址:https://www.cnblogs.com/wangfuyou/p/7765777.html