EnumComparerTEnumGetHashCode(TEnum) Method
Returns a hash code for the specified TEnum instance.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public abstract int GetHashCode(
TEnum obj
)
Public MustOverride Function GetHashCode (
obj As TEnum
) As Integer
public:
virtual int GetHashCode(
TEnum obj
) abstract
abstract GetHashCode :
obj : 'TEnum -> int
- obj TEnum
- The TEnum for which a hash code is to be returned.
Int32
A hash code for the specified
TEnum instance.
IEqualityComparerTGetHashCode(T) Returned hash code is not necessarily equals with own hash code of an enum value but provides a fast and well-spread value.