inline list c# code example
Example 1: instantiate list with values c#
var list = new List<string> {
"test1",
"test2",
"test3"
};
Example 2: c# list with 0 initialize
var tenDoubles = new List<double>(new double[10]);
var list = new List<string> {
"test1",
"test2",
"test3"
};
var tenDoubles = new List<double>(new double[10]);