Quick way to create a list of values in C#? – Stack Overflow

var array = new string[] { “foo”, “bar” }; Queue. var queque = new Queue(new[] { 1, 2, 3 }); Stack. var queque = new Stack(new[] { 1, 2, 3 }); As you can see for the majority of cases it is merely adding the values in curly braces, or instantiating a new array followed by curly braces and values.

Read More