string a = "123,123,12,124,125,124,";
string[] result = a.Split(',').Distinct().ToArray();
string b = string.Join(",", result);
//结果b等于:123,12,124,125,