c# string array distinct code example
Example 1: get unique array based on value in c#
items.Distinct<int>()
Example 2: c# distinct array of objects by values
var uniquePersons = persons.GroupBy(p => p.Email)
.Select(grp => grp.First())
.ToArray();