Summary
Composes self Specification
with IsTypeSpecification<T>
negation:
Checks if candidate is not compatible with a given type.
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> IsNotType<T>(this ICompositeSpecification<T> self, Type notExpected)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of candidate property to verification. |
Parameters
Name |
Type |
Description |
self |
ICompositeSpecification<T> |
Self specification. |
notExpected |
Type |
Not expected type of candidate property. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when self is null. |
System.ArgumentNullException |
Thrown when notExpected is null. |