Summary
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> Contains<T, TPropertyType>(this ICompositeSpecification<T> self, Expression<Func<T, IEnumerable<TPropertyType>>> selector, TPropertyType expected, IEqualityComparer<TPropertyType> comparer = null)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of candidate. |
TPropertyType |
Type of expected element in collection. |
Parameters
Name |
Type |
Description |
self |
ICompositeSpecification<T> |
Self specification. |
selector |
Expression<Func<T, IEnumerable<TPropertyType>>> |
Candidate property selector. |
expected |
TPropertyType |
Expected element in collection. |
comparer |
IEqualityComparer<TPropertyType> |
Equality comparer. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when self or selector is null. |
System.ArgumentException |
Thrown when selector is not valid. |