title: Possible to change Data Annotations during Runtime? (ASP.NET MVC's [Range] [Required] [StringLength] etc.)
body: <p>Normally, ModelBinding Validation of a class member might be done like this example:</p>
  
  <pre><code>public Class someclass
  {
      [StringLength(50)]
      public string SomeValue { get; set; }
  }
  </code></pre>
  
  <p>SomeValue is limited to 50 characters at a maximum.</p>
  
  <p>Is it possible to have the constant (50) changed to something else at run-time, say, during the construction of each instance of that class, so that it is possible to have varying instances with different StringLength limitations?</p>
  
  <p>If so, how does one do this?</p>