📜  linq distinct - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:40.031000             🧑  作者: Mango

代码示例6
var uniquePeople = from p in people
                   group p by new {p.ID} //or group by new {p.ID, p.Name, p.Whatever}
                   into mygroup
                   select mygroup.FirstOrDefault();