PropertySpecification<T, TProperty>.

PropertySpecification(Expression<Func<T, TProperty>>, ISpecification<TProperty>) Constructor

Summary

Creates Specification for candidate property

Syntax

[PublicAPI]
public PropertySpecification(Expression<Func<T, TProperty>> selector, ISpecification<TProperty> propertySpecification)

Attributes

Type Description
PublicAPI

Parameters

Name Type Description
selector Expression<Func<T, TProperty>> Property selector.
propertySpecification ISpecification<TProperty> Specification to verify value of candidate property.

Return Value

Type Description
void

Exceptions

Type Description
System.ArgumentNullException Thrown when selector or propertySpecification is null.
System.ArgumentException Thrown when selector is not valid.
GitHub