Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
c# distinct array of objects by values
Ahmad R.
Programming language:
C#
2021-05-02 14:15:57
1
Q:
c# distinct array of objects by values
strongwall
Code:
C#
2021-04-03 00:03:04
var uniquePersons = persons.GroupBy(p => p.Email) .Select(grp => grp.First()) .ToArray();
0
Tags
object
array
value
values
objects
Related
get unique array based on value in c#
c# get distinct values all fields from list
c# distinct comparer multiple properties
select distinct two columns entity framework c#
distinct and not null c#
c# list with only unique items
array list dictionary c#
c# find duplicates in list
c# distinct dictionary
combine array c# with unique value
unique items in list c#
find the values of dictionaries in C sharp
c# linq select only unique values from list
c# linq order by multiple columns
New to Communities?
Join the community