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

TThe type of values to compare.

Parameters

signThe comparison sign.
aThe first value to compare.
bThe second value to compare.

Returns

boolThe result of the comparison, either true or false.