c# distinct array of objects by values

76

c# distinct array of objects by values -

var uniquePersons = persons.GroupBy(p => p.Email)
                           .Select(grp => grp.First())
                           .ToArray();

Comments

Submit
0 Comments