Specification.

AndNot<T, TProperty>(Expression<Func<T, TProperty>>, ISpecification<TProperty>, ISpecification<TProperty>) Method

Summary

Creates AndSpecification<T> for candidate property:

Join property Specifications by logical AND. Second Specifications is negated.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> AndNot<T, TProperty>(Expression<Func<T, TProperty>> selector, ISpecification<TProperty> left, ISpecification<TProperty> right)

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate.
TProperty Type of candidate property to verify.

Parameters

Name Type Description
selector Expression<Func<T, TProperty>> Candidate property selector.
left ISpecification<TProperty> Base first Specification.
right ISpecification<TProperty> Base second Specification.

Return Value

Type Description
IComplexSpecification<T> New complex Specification for candidate property.

Exceptions

Type Description
System.ArgumentNullException Thrown when selector, left or right is null.
System.ArgumentException Thrown when selector is not valid.
GitHub