public static void Main()
int[] sourceArray = { 2, 5, 3, 8, 6, 5, 4, 15, 19, 32 };
Console.WriteLine( "Original values:" );
PrintValues(sourceArray);
Console.WriteLine( "Values after calling Reverse method:" );
PrintValues(sourceArray);
public static void PrintValues(Array myArr)
int cols = myArr.GetLength(myArr.Rank - 1);
foreach (object o in myArr)
Console.Write( "\t{0}", o);