Table of Contents

Class LikeOperatorHelper

Namespace
NCalc.Helpers
Assembly
NCalc.Core.dll
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

value string

Returns

string

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

leftValue object

The left operand.

rightValue object

The right operand.

stringComparer StringComparer

The comparer used for literal comparison.

Returns

bool

true if the value matches the pattern; otherwise, false.

Like(string?, string?, StringComparer)

public static bool Like(string? value, string? pattern, StringComparer stringComparer)

Parameters

value string
pattern string
stringComparer StringComparer

Returns

bool