List過濾重複資料,去除重複資料 List<string> list = new List<string>(); List<string> listDistinct = list.Distinct().ToList();