declaration of list in c# code example Example: c# list declaration List<int> primeNumbers = new List<int>();