How can I add a rule that an object passed to .Validate(..) cannot be null?
I currently have to do
if(obj==null || !Validator.Validate(obj)) throw new Exception())
I want to include the obj==null validation within the validator.
How can I add a rule that an object passed to .Validate(..) cannot be null?
I currently have to do
if(obj==null || !Validator.Validate(obj)) throw new Exception())
I want to include the obj==null validation within the validator.