Another approach with the Array.ForEach<T> Method (T[], Action<T>)
method of the Array
class
Array.ForEach(myArray, Console.WriteLine);
That takes only one iteration compared to array.ToList().ForEach(Console.WriteLine)
which takes two iterations and creates internally a second array for the List
(double iteration runtime and double memory consumtion)