예제 #1
0
        private static void PrintValues(int[,,] myArr)
        {
            System.Collections.IEnumerator myEnumerator = myArr.GetEnumerator();
            int i    = 0;
            int cols = myArr.GetLength(myArr.Rank - 1);

            while (myEnumerator.MoveNext())
            {
                if (i < cols)
                {
                    i++;
                }
                else
                {
                    Console.WriteLine();
                    i = 1;
                }
                Console.Write("\t{0}", myEnumerator.Current);
            }
            Console.WriteLine();
        }