c sharp init list code example
Example 1: c# how to set string list
// This will create a new list called 'nameOfList':
var nameOfList = new List<string>
{
"value1",
"value2",
"value3"
};
Example 2: c# list with 0 initialize
var tenDoubles = new List<double>(new double[10]);