Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有带有 int** 参数的 c++ 方法,它是指向 int 数组的指针。
如何将其编组为 C#?
你可以尝试从这个方法签名中获得灵感:
void MyMethod([MarshalAs(UnmanagedType.LPArray, SizeConst=10)] int[] ar);
(数组长度为 10)