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); }}
Standard input is empty
prog.cs(8,16): error CS0305: Using the generic type `System.Collections.Generic.List<T>' requires `1' type argument(s) /usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error) Compilation failed: 1 error(s), 0 warnings
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!