3

I have c++ method with int** argument which is pointer to int array.

How can I marshall it to C#?

sloth
  • 95,484
  • 19
  • 164
  • 210
Redwan
  • 738
  • 9
  • 27

1 Answers1

-1

You can try to get inspiration from this method signature:

void MyMethod([MarshalAs(UnmanagedType.LPArray, SizeConst=10)] int[] ar);

(The array is 10 in length)

Gabriel Hautclocq
  • 3,142
  • 2
  • 24
  • 30