Table of Contents

Class IsRegexNotMatchedValidator<TResult>

Namespace
LfrlAnvil.Validation.Validators
Assembly
LfrlAnvil.Validation.dll

Represents a string validator that expects a Regex to not be matched.

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 Regex

Regex to not match.

failureResult TResult

Failure result.

Properties

FailureResult

Failure result.

public TResult FailureResult { get; }

Property Value

TResult

Regex

Regex to not match.

public Regex Regex { get; }

Property Value

Regex

Methods

Validate(string)

Validates the provided obj.

[Pure]
public Chain<TResult> Validate(string obj)

Parameters

obj string

Object to validate.

Returns

Chain<TResult>

Result of obj validation.