Example #1
0
 public static Validator <T> CreateValidatorFromAttributes <T>()
 {
     return(ValidationFactory.CreateValidatorFromAttributes <T>(string.Empty));
 }
Example #2
0
 public static ValidationResults ValidateFromAttributes <T>(T target)
 {
     return(ValidationFactory.CreateValidatorFromAttributes <T>().Validate(target));
 }