本文介绍了int *等价于c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的, 我有以下方法,有人知道C#中的int *等效吗?
Dears, I have the following method does anyone know what is the equivalent of int* in C#?
[DllImport("ZT_BILL.dll")] public static extern int ZT_BILL_OpenDevice([MarshalAs(UnmanagedType.LPStr)]string pstrCom, int* nHandle, int nFage = 0);推荐答案
IntPtr [ ^ ]除非您要使用不安全的代码. IntPtr[^] unless you want to use unsafe code.
AFAIK,应该是这样的: MSDN:IntPtr [ ^ ] AFAIK, it should be this: MSDN: IntPtr[^]
更多推荐
int *等价于c#
发布评论