Summary
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> ForProperty<T, TProperty>(Expression<Func<T, TProperty>> selector, ISpecification<TProperty> specification)
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. |
specification |
ISpecification<TProperty> |
Specification to verify value of candidate property. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when selector or specification
is null.
|
System.ArgumentException |
Thrown when selector is not valid. |