Table of Contents

Class LambdaValidator<TResult>

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

Creates instances of IValidator<T, TResult> type through delegates.

public static class LambdaValidator<TResult>

Type Parameters

TResult

Result type.

Inheritance
LambdaValidator<TResult>
Inherited Members

Methods

Create<T>(Func<T, Chain<TResult>>)

Creates a new IValidator<T, TResult> instance.

[Pure]
public static IValidator<T, TResult> Create<T>(Func<T, Chain<TResult>> validator)

Parameters

validator Func<T, Chain<TResult>>

Validation delegate.

Returns

IValidator<T, TResult>

New IValidator<T, TResult> instance.

Type Parameters

T

Object type.