1. 程式人生 > >string [] 去除重復字符兩個方法

string [] 去除重復字符兩個方法

技術分享 tex arp [] log list rep replace alt

不廢話直接看圖

技術分享

結果

技術分享

代碼:

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

string [] 去除重復字符兩個方法