How To Use Distinct In Linq Query In C

[Solved] How To Use Distinct In Linq Query In C | Php Frameworks Codeigniter - Code Explorer | yomemimo.com
Question : how to use distinct in linq query in c#

Answered by : raksha-deshmukh

var distValues = objList.Select(o=>o.typeId).Distinct().ToList();

Source : | Last Update : Thu, 11 Feb 21

Question : linq distinct

Answered by : phipi

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();

Source : https://stackoverflow.com/questions/489258/linqs-distinct-on-a-particular-property | Last Update : Mon, 18 Jan 21

Answers related to how to use distinct in linq query in c

Code Explorer Popular Question For Php Frameworks Codeigniter