c# - SuppressUnmanagedCodeSecurity or SuppressUnmanagedCodeSecurityAttribute? -
to disable security checks should set? suppressunmanagedcodesecurityattribute or suppressunmanagedcodesecurity?
which of these versions corrrect?
[dllimport("native.dll"), suppressunmanagedcodesecurity] public static extern void method(... or
[dllimport("native.dll"), suppressunmanagedcodesecurityattribute] public static extern void method(...
both same thing. class named suppressunmanagedcodesecurityattribute, when annotating attributes in general, can omit suffix attribute.
Comments
Post a Comment