var list= list.Where((x, i) => list.ToList().FindIndex(z => z.PropertyName == x.PropertyName) == i).ToList();
List 根据实体属性去重
最新推荐文章于 2024-09-22 08:59:36 发布
var list= list.Where((x, i) => list.ToList().FindIndex(z => z.PropertyName == x.PropertyName) == i).ToList();