Answers for "unique c#"

C#
1

c# distinct array of objects by values

var uniquePersons = persons.GroupBy(p => p.Email)
                           .Select(grp => grp.First())
                           .ToArray();
Posted by: Guest on April-06-2020
0

unique items in list c#

var uniqueItemsList = yourList.Distinct().ToList();
Posted by: Guest on October-19-2020

C# Answers by Framework

Browse Popular Code Answers by Language