O
olexij.tkatchenko
Hello,
I am failing to create appropriate array in C++ to pass to a C# method.
The method looks like
public Foo(int[,] data) {..}
in C#. When I try to call it with an array initialized in C++ as:
int inputArray[][2] = {{0, 0}, {0, 1}, {1, 0}, {1, 1}};
it fails. So what is the proper way to declare an equivalent of int[,]
in C++?
I am failing to create appropriate array in C++ to pass to a C# method.
The method looks like
public Foo(int[,] data) {..}
in C#. When I try to call it with an array initialized in C++ as:
int inputArray[][2] = {{0, 0}, {0, 1}, {1, 0}, {1, 1}};
it fails. So what is the proper way to declare an equivalent of int[,]
in C++?