what is fastest way to remove duplicate values from a list. Assume List longs = new List { 1, 2, 3, 4, 3, 2, 5 }; So I am interesting in
List longs = new List { 1, 2, 3, 4, 3, 2, 5 };
There is Distinct() method. it should works.
List longs = new List { 1, 2, 3, 4, 3, 2, 5 }; var distinctList = longs.Distinct().ToList();