Skip to content
Browse files

in TypeValidator, using CollectionValidationAttribute instead of Vali…

…dateAttribute
  • Loading branch information...
1 parent 1d49252 commit 1d926b8134280bb19b5945c312c3233262b7f508 @adrianaisemberg adrianaisemberg committed Oct 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 CLAP/TypeValidator.cs
View
4 CLAP/TypeValidator.cs
@@ -22,7 +22,7 @@ public static void Validate(object obj)
// first use all the validators defined over this type
//
var validators = type.
- GetAttributes<ValidateAttribute>().
+ GetAttributes<CollectionValidationAttribute>().
Cast<IValidation>().
Select(a => a.GetValidator());
@@ -50,7 +50,7 @@ public static void Validate(object obj)
}
var propertyValidators = property.
- GetAttributes<ValidateAttribute>().
+ GetAttributes<CollectionValidationAttribute>().
Cast<IValidation>().
Select(a => a.GetValidator());

0 comments on commit 1d926b8

Please sign in to comment.
Something went wrong with that request. Please try again.