根据ASCII码表来判断该字符是否为逗号 此方法效率较低
//中文逗号转英文逗号 public string YingDaoZhong(string Ying) { string rest = ""; char douHao = ','; int a = douHao; // MessageBox.Show(a.ToString()); for (int i = 0; i < Ying.Length; i++) { char c = Ying[i]; if (c == douHao) { rest += ","; } else { rest += Ying[i]; } } return rest; } //中文逗号转英文逗号 public string ZhongDaoYing(string Zhong) { string rest = ""; char douHao = ','; int a = douHao; // MessageBox.Show(a.ToString()); for (int i = 0; i < Zhong.Length; i++) { char c = Zhong[i]; if (c == douHao) { rest += ","; } else { rest += Zhong[i]; } } return rest; }