SuppressUnmanagedCodeSecurity At Class Level
If I开发者_开发百科 add the [SuppressUnmanagedCodeSecurity()] attribute to a class, is it equivalent to adding it to each function in the class?
From the MSDN docs of this attribute:
Using this attribute in a class applies it to all contained methods.
So the answer to your question is yes.
精彩评论