Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# .NET Core linq Distinct

var distinctUsers = allUsers
    .GroupBy(x => x.UserId)
    .Select(x => x.First())
    .ToList();
 
PREVIOUS NEXT
Tagged: #Core #linq #Distinct
ADD COMMENT
Topic
Name
1+2 =