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