List去重复

var objects = yourResults.GroupBy(o => o.Id).Select(g => g.First());
posted @ 2020-11-27 16:49  天藐水瓶  阅读(71)  评论(1编辑  收藏  举报