Hi,
I need to add arguments in a function Validate(). My rule needs the arguments for reason of the business, example:
Thanks
I need to add arguments in a function Validate(). My rule needs the arguments for reason of the business, example:
var validator = new UserValidator();
instance = new MyClass();
....
// Validation one:
validator.Validade(instance, ruleSet: "integrity");
// Validation two:
validator.Validade(instance, ruleSet: "special-rule", arguments ...);
How do it?Thanks