new list-array with values c#

112

new list/array with values c# -

var myList = new List<string> { "foo", "bar" };
//Alternatively
var myArray = new[]{ "foo", "bar" };

Comments

Submit
0 Comments