title: How would one create wrappers for property attributes?
body: <p>In ASP.NET MVC we can use the System.ComponentModel.DataAnnotations namespace to assist with form/ model input validation. </p>
  
  <p>If I didn't want to be tied to any specific framework i.e. xVal, EntLib Val Block, etc. and I wanted to create basically a wrapper classes to protect my code from the direct dependency how would one accomplish that?</p>
  
  <p>So instead of my model property looking like this;</p>
  
  <pre><code>[Required]
  property string Name {get;set;}
  </code></pre>
  
  <p>I want it to be tied to my code where the validation framework preferred will be implemented.</p>
  
  <pre><code>[MyRequired]
  property string Name {get;set;}
  </code></pre>