Class IsRegexNotMatchedValidator<TResult>
- Namespace
- LfrlAnvil.Validation.Validators
- Assembly
- LfrlAnvil.Validation.dll
public sealed class IsRegexNotMatchedValidator<TResult> : IValidator<string, TResult>
Type Parameters
TResult
Result type.
- Inheritance
-
IsRegexNotMatchedValidator<TResult>
- Implements
-
IValidator<string, TResult>
- Inherited Members
- Extension Methods
Constructors
IsRegexNotMatchedValidator(Regex, TResult)
Creates a new IsRegexNotMatchedValidator<TResult> instance.
public IsRegexNotMatchedValidator(Regex regex, TResult failureResult)
Parameters
regex
RegexRegex to not match.
failureResult
TResultFailure result.
Properties
FailureResult
Failure result.
public TResult FailureResult { get; }
Property Value
- TResult
Regex
Regex to not match.
public Regex Regex { get; }
Property Value
Methods
Validate(string)
Validates the provided obj
.
[Pure]
public Chain<TResult> Validate(string obj)
Parameters
obj
stringObject to validate.
Returns
- Chain<TResult>
Result of
obj
validation.