Like Method
Like(string, string)
Succeeds if the target value matches the specified case-sensitive pattern.
Declaration
public static IPredicate Like(string name, string pattern)
Parameters
string | name | The name of the target. |
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.