AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter15/Listing15.04.CompiledImplementationOfForeachWithArrays.cs
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter15.Listing15_04
{
    using System;

    public class Program
    {
        public static void Main()
        {
            int[] tempArray;
            int[] array = new int[] { 1, 2, 3, 4, 5, 6 };

            tempArray = array;
            for(int counter = 0; (counter < tempArray.Length); counter++)
            {
                int item = tempArray[counter];

                Console.WriteLine(item);
            }
        }
    }
}
