字符串数组去重


        string a = "123,123,12,124,125,124,";

        string[] result = a.Split(',').Distinct().ToArray();

        string b = string.Join(",", result);

//结果b等于:123,12,124,125,

字符串数组去重

posted @ 2013-12-12 16:51  山清石玉  阅读(3204)  评论(0编辑  收藏  举报