How is it possible to initialize (with a C# initializer) a list of strings? I have tried with the example below but it\'s not working.
List opt
var animals = new List { "bird", "dog" }; List animals= new List { "bird", "dog" };
Above two are the shortest ways, please see https://www.dotnetperls.com/list