declaring a list of numbers in array c# code example Example: c# declare an int list List<int> intList = new List<int>();