Answers for "asp.net mvc core linq distinct"

C#
3

C# .NET Core linq Distinct

var distinctUsers = allUsers
    .GroupBy(x => x.UserId)
    .Select(x => x.First())
    .ToList();
Posted by: Guest on June-30-2020

Code answers related to "asp.net mvc core linq distinct"

C# Answers by Framework

Browse Popular Code Answers by Language