/// <summary> /// Facilitates Registering a RuleValidator on the PropertyValidator /// </summary> /// <param name="validator"><see cref="RuleValidator<T, TProperty>"/></param> /// <returns><see cref="IRuleBuilder<T, TProperty>"/></returns> IRuleBuilder <T, TProperty> IRuleBuilder <T, TProperty> .RegisterValidator(RuleValidator <T, TProperty> validator) { validator.Negate = _negate; if (OrNextRule) { _propertyValidator.OrRule(validator); OrNextRule = false; } else { _propertyValidator.AndRule(validator); } return(this); }