how to get unique elements from list in c# code example
Example 1: unique items in list c#
var uniqueItemsList = yourList.Distinct().ToList();
Example 2: get unique array based on value in c#
items.Distinct<int>()
var uniqueItemsList = yourList.Distinct().ToList();
items.Distinct<int>()