Exemple #1
0
 public void ReplaceValidators(params ValidatorAttribute[] validators)
 {
     Validators.Clear();
     Validators.AddRange(validators);
 }
Exemple #2
0
 /// <summary>Adds the specified new validators.</summary>
 /// <param name="newValidators">The new validators.</param>
 public void Add(params IValidator[] newValidators) => Validators.AddRange(newValidators);
 /// <summary>
 /// Initializes a new instance of the <see cref="DataValueEditor"/> class.
 /// </summary>
 public DataValueEditor(string view, params IValueValidator[] validators) // not used
     : this()
 {
     View = view;
     Validators.AddRange(validators);
 }
Exemple #4
0
 /// <summary>
 /// Adds validators to collection of validators used by behavior.
 /// </summary>
 /// <param name="validators"></param>
 public void AddValidators(IEnumerable <IValidator <TRequest> > validators)
 {
     Validators.AddRange(validators);
 }