title: What is "declarative security"? In general
body: <p>The answer to this question: <a href="https://stackoverflow.com/questions/1210609">Declarative Security--what&#39;s this?</a>
  Doesn't really tell me much... doesn't tell me anything at all to be blunt.</p>
  
  <p>I came across a blog about performance in .NET and it mentioned this:</p>
  
  <p><strong>Do You Use Declarative Security?</strong></p>
  
  <p><strong>Where possible, it is recommended that you use declarative security instead of imperative security checks. The current implementation of demand provides better performance and support with the security tools that are currently being built to help security audits.</strong><br /></p>
  
  <p><strong>Note that if your security checks are conditional within a method, imperative security is your only option.</strong></p>
  
  <p>Link: <a href="http://weblogs.asp.net/sanjeevagarwal/archive/2009/09/09/net-code-performance-tips-part-1.aspx" rel="nofollow noreferrer">http://weblogs.asp.net/sanjeevagarwal/archive/2009/09/09/net-code-performance-tips-part-1.aspx</a></p>
  
  <p>What does "declarative security" stand for? Can someone give a concrete example?</p>