static void Main(string[] args) { var numbers = new List<int>() { 10, 4, 8 }; if (numbers.Distinct().Count() == numbers.Count()) Console.WriteLine("unique"); }