要禁用安全检查,我应该设置什么?SuppressUnmanagedCodeSecurityAttribute
还是SuppressUnmanagedCodeSecurity
?
这些版本中哪个是正确的?
[DllImport("Native.dll"), SuppressUnmanagedCodeSecurity]
public static extern void Method(...
或者
[DllImport("Native.dll"), SuppressUnmanagedCodeSecurityAttribute]
public static extern void Method(...