using System; public class Program{ public static void Main() { IEnumerable<int> xs = new int[] { 1, 2, 3, 4, 5 }; Console.WriteLine(xs.Length); }}
Standard input is empty
prog.cs(7,9): error CS0246: The type or namespace name `IEnumerable' could not be found. Are you missing a using directive or an assembly reference? 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!