EnumComparerTEnumCompare Method

Compares two TEnum instances and returns a value indicating whether one is less than, equal to, or greater than the other.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public abstract int Compare(
	TEnum x,
	TEnum y
)

Parameters

x  TEnum
The first TEnum instance to compare.
y  TEnum
The second TEnum instance to compare.

Return Value

Int32
ValueCondition
Less than zerox is less than y.
Zerox equals y.
Greater than zerox is greater than y.

Implements

IComparerTCompare(T, T)

See Also