Discuss about imperative and declarative security. - Imperative security is implemented by calling methods of Permission objects in code at run time. - Declarative security is configured by attaching attributes representing permissions to classes and methods. - Additionally, you can request assembly-wide permissions using the Assembly (assembly) directive with declarative security.
|