title: .NET: DataAnnotation attributes in general
body: <p>ASP.NET MVC 2 will support validation based on <em>DataAnnotation</em> attributes like this:</p>
  
  <pre><code>public class User
  {
      [Required]
      [StringLength(200)]
      public string Name { get; set; }
  }
  </code></pre>
  
  <p>How can I check that a current model state is valid using <strong>only pure .NET</strong> (not using MVC binding, controller methods, etc.)?</p>
  
  <p>Ideally, it would be a single method:</p>
  
  <pre><code>bool IsValid(object model);
  </code></pre>