title: Is it possible to use DataAnnotations with Interfaces?
body: <p>I want to use DataAnnotations to validate classes that implements some interfaces, and so I'm adding validation attributes to the interface, like this:</p>
  
  <pre><code>public interface IUser
  {
      [Required]
      string Name { get; set; }
  
      [Display(Name = "Email Address")]
      [Required]
      string Email { get; set; }
  }
  </code></pre>
  
  <p>It doesn't work when I try to use <code>Validator.TryValidateObject</code>.</p>
  
  <p>Is there any way to make this instead of having to write a custom <code>TryValidateObject</code> method?</p>