using System; using System.Collections.Generic; public class Test { public static void Main() { var xs = new List(); xs.add(1); xs.add(2); foreach (var x in xs) Console.WriteLine(x); } }