using System; using System.Collections.Generic; using System.Linq; using static System.Linq.Enumerable; class Test{ public static void Main(){ var q = Enumerable.Range(1,10).ToArray(); //var q = Range(1,10).ToArray(); int sum = 0; foreach (var k in q) sum += k; Console.WriteLine("Hello World!"); } }