1 // Compiler options: -langversion:linq
2 // Tests collection initialization
4 using System.Collections;
5 using System.Collections.Generic;
11 ArrayList collection = new ArrayList { "Foo", "Bar", "Baz" };
12 foreach (string s in collection)
16 List<string> generic_collection = new List<string> { "Hello", "World" };
17 foreach (string s in generic_collection)