DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSHARP
c# linq select only unique values from list
var uniqueCategories = repository.GetAllProducts() .Select(p=>p.Category) .Distinct();
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#linq
#select
#unique
#values
#list
ADD COMMENT
Topic
COMMENT
Name
4+1 =
Submit