initialize all values in a list c# code example Example: c# list with 0 initialize var tenDoubles = new List<double>(new double[10]);