ComparisonSignExtensions.Compare<T>
Extension Method in ComparisonSignExtensions
Declaration
public static bool Compare<T>(this ComparisonSign sign, T a, T b)
where T : IComparable<T>
Description
Compares two values using the comparison sign.
Type Parameters
T | The type of values to compare. |
Parameters
sign | The comparison sign. |
a | The first value to compare. |
b | The second value to compare. |
Returns
bool | The result of the comparison, either true or false. |