linq remove duplicates from random c# code example Example: c# linq remove duplicate items from list of integer List<int> distinct = list.Distinct().ToList();