Summary
Composes self Specification
with MatchSpecification
negation for
candidate property:
Checks if string candidate property not match a given Regex pattern.
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotMatch<T>(this ICompositeSpecification<T> self, Expression<Func<T, string>> selector, string pattern, RegexOptions options = null)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of candidate. |
Parameters
Name |
Type |
Description |
self |
ICompositeSpecification<T> |
Self specification. |
selector |
Expression<Func<T, string>> |
Candidate property selector. |
pattern |
string |
Regex pattern. |
options |
RegexOptions |
Regex matching options. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when self or selector is null. |
System.ArgumentException |
Thrown when selector is not valid. |
System.ArgumentException |
Thrown when pattern is null or empty. |