IsLike Method
IsLike(string)
Succeeds if the target value matches the specified case-sensitive pattern.
Declaration
public virtual IPredicate IsLike(string pattern)
Parameters
string | pattern | The pattern. |
Returns
IPredicate | A new predicate. |
Remarks
The pattern is case-sensitive.
In the pattern, the % character (percentage sign) is a placeholder for multiple characters, and the _ character (underscore) is a placeholder for a single character.
These two special characters can be escaped with a backslash.