Managing multidimensional array from GDScript to C#

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wilk_

I want to mix GDScript and C# in my new project. C# for heavy calculations.
I have created array:

var my_array = [ [Vector2(1,1), 10], [Vector2(2,2), 11], [Vector2(3,3), 13], ... ]

basicaly first column is for holding Vector2 and second column holds priorities float values.

Now im trying to pass this array to C# via function and get to its data. But i have no idea how to do that. Array is passed but cant enter its values.

Im trying something like this:

public static void print_passed_array(object[,] arr)
{
    GD.Print(arr[0,1]);
}

But it throws error:
drivers/unix/net_socket_posix.cpp:190 - Socket error: 10054

maby someone have faced similar problem?