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 };
List<long> distinctlongs = longs.Distinct().OrderBy(x => x).ToList();