/// <summary> /// Constructs and configures an <see cref="T:Castle.Components.Validator.IValidator"/> /// instance based on the properties set on the attribute instance. /// </summary> /// <returns></returns> public override IValidator Build() { CollectionNotEmptyValidator validator = new CollectionNotEmptyValidator(); ConfigureValidatorMessage(validator); return validator; }
/// <summary> /// Constructs and configures an <see cref="T:Castle.Components.Validator.IValidator"/> /// instance based on the properties set on the attribute instance. /// </summary> /// <returns></returns> public override IValidator Build() { CollectionNotEmptyValidator validator = new CollectionNotEmptyValidator(); ConfigureValidatorMessage(validator); return(validator); }