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