Dot Net Code Security Question:

Download Job Interview Questions and Answers PDF

Tell me the differences between declarative and imperative security?

.Net code security Interview Question
.Net code security Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What is declarative and imperative security?Explain code access security?