Class IsNotWhiteSpaceValidator<TResult>
- Namespace
- LfrlAnvil.Validation.Validators
- Assembly
- LfrlAnvil.Validation.dll
Represents a string validator that expects a string that does not contain white-space characters only.
public sealed class IsNotWhiteSpaceValidator<TResult> : IValidator<string, TResult>
Type Parameters
TResult
Result type.
- Inheritance
-
IsNotWhiteSpaceValidator<TResult>
- Implements
-
IValidator<string, TResult>
- Inherited Members
- Extension Methods
Constructors
IsNotWhiteSpaceValidator(TResult)
Creates a new IsNotWhiteSpaceValidator<TResult> instance.
public IsNotWhiteSpaceValidator(TResult failureResult)
Parameters
failureResult
TResultFailure result.
Properties
FailureResult
Failure result.
public TResult FailureResult { get; }
Property Value
- TResult
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.