public static IEnumerable<int> FindUniqueNumbers(IEnumberable<int> numbers) c# code example
Example: c# distinct array of objects by values
var uniquePersons = persons.GroupBy(p => p.Email)
.Select(grp => grp.First())
.ToArray();