Dot Net Code Security Question: Download .Net code security PDF

Tell me the differences between declarative and imperative security?

Tweet Share WhatsApp

Answer:

Declarative and imperative are the different syntax schemes used to implement security declarations in .NET Framework. In declarative security, attribute syntax is used. The security constraints are stored in the assembly at compile time. The disadvantage of declarative security is that there are tools which extract security requirements from the metadata in the assembly.

In imperative implementation, the attribute syntax is not used. It is implemented by writing the regular code to provide restrictions

Download .Net code security PDF Read All 10 .Net code security Questions
Previous QuestionNext Question
What is declarative and imperative security?Explain code access security?