c# list with 0 initialize

154

instantiate list with values c# -

var list = new List<string> {
  "test1",
  "test2",
  "test3"
};

c# list with 0 initialize -

var tenDoubles = new List<double>(new double[10]);

Comments

Submit
0 Comments