c# get unique item in list 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>()