Answers for "select distinct on object id c#"

C#
1

c# distinct array of objects by values

var uniquePersons = persons.GroupBy(p => p.Email)
                           .Select(grp => grp.First())
                           .ToArray();
Posted by: Guest on April-06-2020
1

c# distinct by property

objList.Select(o=>o.typeId).Distinct()
Posted by: Guest on May-11-2021

C# Answers by Framework

Browse Popular Code Answers by Language