static void Main(string[] args) { var number = new List<int>() { 5, 7, 2, 4, 9 }; var exist = number.Contains(5); }