List <Model> model = new();
bool isRepeat = model.GroupBy(i => i.ID).Any(g => g.Count() > 1);//判断ID列是否有相同的
.NET List<T>判断是否有重复的列
阅读 31
2022-03-12
List <Model> model = new();
bool isRepeat = model.GroupBy(i => i.ID).Any(g => g.Count() > 1);//判断ID列是否有相同的
相关推荐
精彩评论(0)