Class LikeOperatorHelper
public static class LikeOperatorHelper
- Inheritance
-
LikeOperatorHelper
- Inherited Members
Methods
EscapeLike(string)
Escapes a string so it is matched literally when used as a LIKE pattern.
public static string EscapeLike(string value)
Parameters
valuestring
Returns
Like(object?, object?, StringComparer)
Determines whether a specified string matches a pattern using SQL-like wildcards.
public static bool Like(object? leftValue, object? rightValue, StringComparer stringComparer)
Parameters
leftValueobjectThe left operand.
rightValueobjectThe right operand.
stringComparerStringComparerThe comparer used for literal comparison.
Returns
- bool
trueif the value matches the pattern; otherwise,false.
Like(string?, string?, StringComparer)
public static bool Like(string? value, string? pattern, StringComparer stringComparer)
Parameters
valuestringpatternstringstringComparerStringComparer