title: C# Extension method for checking attributes
body: <p>Sorry if this is a stupid noob question please be gentle with me I'm trying to learn...</p>
  
  <p>I want to test against the attribute methods of things like models and controllers. Mostly to make sure they have the right attrbute ie Required.  But i'm also using this as an experiment with extension methods and Lambdas.</p>
  
  <p>What I'd like is a method that when implimented looks some thing like </p>
  
  <pre><code>Controller controller = new Controller();
  controller.MethodName(params).HasAttribute&lt;AttributeName&gt;();
  </code></pre>
  
  <p>Iveused extension methods a little but not to this degree.. I'm sure this should be simple enough to do but cant seem to get my generics etc correct.</p>