Answers for "asp.net core linq distinct function"

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

C# Answers by Framework

Browse Popular Code Answers by Language