Exemplo n.º 1
0
 /// <summary>
 /// Specifies the value the target must start with.
 /// </summary>
 /// <param name="start">The starting value which cannot be null.</param>
 /// <param name="caseSensitive">Specifies if start is checked in a case sensitive manner.</param>
 /// <exception cref="ArgumentNullException">Thrown if start is null.</exception>
 public StartsWithAttribute(string start, bool caseSensitive = true)
 {
     _start     = start;
     _validator = new StartsWithValidator(start, caseSensitive);
 }
 public StartsWithValidatorOperation(string keyToValidate, string value, string resultKey, bool negated)
     : base(keyToValidate, resultKey)
 {
     Validator = new StartsWithValidator(value, string.Empty, keyToValidate, negated);
 }
 public StartsWithValidatorOperation(string keyToValidate, string value, string resultKey, bool negated)
     : base(keyToValidate, resultKey) {
     Validator = new StartsWithValidator(value, string.Empty, keyToValidate, negated);
     }