Question: Using C#, Complete the following method that merges 2 rectangular Int32 arrays: public Int32[,] MergeArrays( Int32[,] Array1, Int32[,] Array2, MergeType Type) { Int32[,] retVal=null; //--------------------------------------------------------
Using C#, Complete the following method that merges 2 rectangular Int32 arrays:
public Int32[,] MergeArrays( Int32[,] Array1, Int32[,] Array2, MergeType Type)
{
Int32[,] retVal=null;
//--------------------------------------------------------
//Your code here!
//--------------------------------------------------------
return retVal;
}
Note* MergeType is an enum that indicates either a vertical or horizontal merge!
Examples:
Identical arrays horizontal merge:
+
=
Identical arrays vertical merge:
+
=
Distinct arrays horizontal merge:
+
=
Distinct arrays vertical merge:
+
=
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
