RAD Studio VCL Reference
|
GetHashCode is a generic method used to generate the hash code for a value.
function GetHashCode(const Value: T): Integer;
__fastcall int GetHashCode(const T Value);
Use GetHashCode to generate the hash code for the given input value. Any class that implements the IEqualityComparer interface is expected to provide the implementation for the GetHashCode method.
Two equal values are required to have the same hash code, while two different values are not required to have different hash codes.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|