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
相关文章
相关标签/搜索