C# 判斷List集合中是否有重複的項

/*在.Net 3.5 以上*/ bool HaveDuplicates = vList.GroupBy(i => i).Where(g => g.Count() > 1).Count() >= 1;   轉載於:https://www.cnblogs.com/ouylvr0625/p/8087177.htmlhtml
相關文章
相關標籤/搜索