Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# linq unique by property

Persons.ToLookup(p => p.Id).Select(coll => coll.First());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq #unique #property
ADD COMMENT
Topic
Name
4+4 =