string [] 去除重复字符两个方法

 不废话直接看图

结果

代码:

this.txtListHTML.Text = String.Join(",", list.Replace("\r\n", ",").Split(',').Distinct()).Replace(",", "\r\n");

 

posted @ 2017-05-25 16:08  懒人境界  阅读(635)  评论(0编辑  收藏  举报