c# list with fixed values code example
Example 1: c# declare an int list
List<int> intList = new List<int>();
Example 2: instantiate list with values c#
var list = new List<string> {
"test1",
"test2",
"test3"
};
List<int> intList = new List<int>();
var list = new List<string> {
"test1",
"test2",
"test3"
};