Print Array - CSharp System

CSharp examples for System:Array Element

Description

Print Array

Demo Code


using System;//from w ww. j  a  va  2s  .  c  o  m

public class Main{
        public static void PrintArray<T>(T[] array)
        {
            for (int i = 0; i < array.Length; i++)
            {
                Console.Write("{0} ", array[i]);
            }

            Console.WriteLine();
        }
}

Related Tutorials