SpecificationCore.

AsPredicate<T>(ISpecification<T>) Method

Summary

Converts Specification to Func<T, TResult> predicate.
Namespace
FluentSpecification.Core
Containing Type
SpecificationCore

Syntax

[PublicAPI]
[NotNull]
public static Func<T, bool> AsPredicate<T>(this ISpecification<T> self)

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate.

Parameters

Name Type Description
self ISpecification<T> Self specification.

Return Value

Type Description
Func<T, bool> Function for candidate verification.

Exceptions

Type Description
System.NullReferenceException Thrown when self is null.
GitHub