unique c# code example
Example 1: unique items in list c#
var uniqueItemsList = yourList.Distinct().ToList();
Example 2: c# distinct array of objects by values
var uniquePersons = persons.GroupBy(p => p.Email)
.Select(grp => grp.First())
.ToArray();