Specification.

Expression<T>(ICompositeSpecification<T>, Expression<Func<T, bool>>) Method

Summary

Composes self Specification with ExpressionSpecification<T>:

Checks if external Linq Expression is satisfied by candidate.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> Expression<T>(this ICompositeSpecification<T> self, Expression<Func<T, bool>> expression)

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate to verify.

Parameters

Name Type Description
self ICompositeSpecification<T> Self specification.
expression Expression<Func<T, bool>> External Expression.

Return Value

Type Description
IComplexSpecification<T> Composed complex Specification.

Exceptions

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