如何將指針傳遞給C#中的函數參數作爲結構體的指針?作爲C#中的函數參數傳遞指向結構體的指針的指針
我想從一個DLL函數中使用它的一個參數作爲雙指針。對於例如,
struct mystruct
{
int a;
char b;
};
[DllImport("mydll.dll")]
private static extern int func_name(int a, char b, mystruct** c);
我想用一個指針像int *a
是ref int a
的正確方法。有沒有類似的int **a
?