public unsafe void A()
{
byte[] a1 = new byte[1024];
fixed (IntPtr* p0 = (IntPtr*)(sctxt))
{
fixed (IntPtr* p1 = a1)
{
……
}
}
}
错误:
1)无法将类型“byte*”隐式转换为“System.IntPtr*”。存在一个显式转换(是否缺少强制转换?)
2)fixed 语句赋值的右边不能是强制转换表达式