List去重复

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