Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# distinct array of objects by values

var uniquePersons = persons.GroupBy(p => p.Email)
                           .Select(grp => grp.First())
                           .ToArray();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #distinct #array #objects #values
ADD COMMENT
Topic
Name
6+2 =