EnumComparerTEnumCompare Method
Compares two TEnum instances and returns a value indicating whether one is less than, equal to, or greater than the other.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public abstract int Compare(
TEnum x,
TEnum y
)
Public MustOverride Function Compare (
x As TEnum,
y As TEnum
) As Integer
public:
virtual int Compare(
TEnum x,
TEnum y
) abstract
abstract Compare :
x : 'TEnum *
y : 'TEnum -> int
- x TEnum
- The first TEnum instance to compare.
- y TEnum
- The second TEnum instance to compare.
Int32Value | Condition |
---|
Less than zero | x is less than y. |
Zero | x equals y. |
Greater than zero | x is greater than y. |
IComparerTCompare(T, T)