This attribute marks security methods in our runtime System.Security implementation that require additional stack space be allocated for a security object in methods that call them.
Object
Attribute
DynamicSecurityMethodAttribute
[Visual Basic] Public Class DynamicSecurityMethodAttribute Inherits Attribute [C#] public class DynamicSecurityMethodAttribute : Attribute [C++] public __gc class DynamicSecurityMethodAttribute : public Attribute [JScript] public class DynamicSecurityMethodAttribute extends Attribute
This attribute is never used by application code. This attribute is only used on code in the System.Security namespace, and is never used by other code. This documentation is provided for completeness only, and to explain what this attribute does.
This attribute marks security methods in our runtime System.Security implementation such as Assert that require additional stack space be allocated for a security object in methods that call them. The runtime JIT detects references to methods with this marking and provides the extra slot on the stack where appropriate.
This is not a declarative security attribute, but regular attribute (that is, it derives from Attribute, not SecurityAttribute).
Namespace: System.Security
Assembly: mscorlib.dll
DynamicSecurityMethodAttribute Members | System.Security Namespace