Answers for "how to use distinct for particular column in linq list"

1

how to use distinct for particular column in linq list

CountryData.GroupBy(a=>a.COUNTRY_NAME).Select(a=>a.First());
Posted by: Guest on April-25-2022
0

how to use distinct for particular column in linq list

CountryData.Select(x=>x.COUNTRY_NAME).Distinct()
Posted by: Guest on April-25-2022

Code answers related to "how to use distinct for particular column in linq list"

Browse Popular Code Answers by Language