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