Michael Covelli
Michael Covelli

Reputation: 2193

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?

Upvotes: 2

Views: 899

Answers (1)

Timores
Timores

Reputation: 14589

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.

Upvotes: 3

Related Questions