public static void Main()
int[] sourceArray = { 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 };
Console.WriteLine( "Original values:" );
PrintValues(sourceArray);
sourceArray.BlockCopy(3 * INT_SIZE, sourceArray, 0 * INT_SIZE, 4 * INT_SIZE);
Console.WriteLine( "Values after calling BlockCopy 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);