Pip-Services-Commons-Dotnet
|
Helper class to perform comparison operations over arbitrary values. More...
Static Public Member Functions | |
static bool | Compare (object value1, string operation, object value2) |
Perform comparison operation over two arguments. The operation can be performed over values of any type. More... | |
static bool | AreEqual (object value1, object value2) |
Checks if two values are equal. The operation can be performed over values of any type. More... | |
static bool | AreNotEqual (object value1, object value2) |
Checks if two values are NOT equal The operation can be performed over values of any type. More... | |
static bool | IsLess (object value1, object value2) |
Checks if first value is less than the second one. The operation can be performed over numbers or strings. More... | |
static bool | IsGreater (object value1, object value2) |
Checks if first value is greater than the second one. The operation can be performed over numbers or strings. More... | |
static bool | Match (object value1, object value2) |
Checks if string matches a regular expression More... | |
Helper class to perform comparison operations over arbitrary values.
|
static |
Checks if two values are equal. The operation can be performed over values of any type.
value1 | the first value to compare |
value2 | the second value to compare |
|
static |
Checks if two values are NOT equal The operation can be performed over values of any type.
value1 | the first value to compare |
value2 | the second value to compare |
|
static |
Perform comparison operation over two arguments. The operation can be performed over values of any type.
value1 | the first argument to compare |
operation | the comparison operation |
value2 | the second argument to compare |
|
static |
Checks if first value is greater than the second one. The operation can be performed over numbers or strings.
value1 | the first value to compare |
value2 | the second value to compare |
|
static |
Checks if first value is less than the second one. The operation can be performed over numbers or strings.
value1 | the first value to compare |
value2 | the second value to compare |
|
static |
Checks if string matches a regular expression
value1 | a string value to match |
value2 | a regular expression string |