Answers for "distinct object 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

Code answers related to "distinct object c#"

C# Answers by Framework

Browse Popular Code Answers by Language