public static void Main(string[] args) { int[] somethings = A(10); foreach (var something in somethings) { Console.WriteLine(something); } }