In my case I'm getting this error in the first for-loop:
: Error CS1502: The best overloaded method match for `System.Array.Copy(System.Array, System.Array, int)' has some invalid arguments (CS1502) (test)
namespace test
{
class MainClass
{
public static void Main (string[] args)
{
double [,] test_array = new double[4, 4];
double [] source_array = {1, 2, 3, 4};
for(int i = 0; i < test_array.GetUpperBound(0); i++)
{
System.Array.Copy(source_array, test_array[i, 0], 5);
}
for(int x = 0; x < 4; x++)
{
for(int y = 0; y < 4; y++)
{
System.Console.Write(test_array[x, y]);
System.Console.Write(" ");
}
System.Console.WriteLine();
}
// let's write more code, not less.
System.Threading.Thread.Sleep(10000);
}
}
}