Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to use distinct in linq query in c#

var distValues = objList.Select(o=>o.typeId).Distinct().ToList();
 
PREVIOUS NEXT
Tagged: #distinct #linq #query
ADD COMMENT
Topic
Name
3+4 =