RAD Studio VCL Reference
TObject::GetHashCode Method

Returns an integer containing the hash code.

function GetHashCode: Integer; virtual;
virtual __fastcall Integer GetHashCode();

By default, calling System::TObject::GetHashCode on an object, returns an integer representing the virtual address at which the object is stored.

Note: System::TObject::GetHashCode is supposed to be overridden in user derived classes, in order to provide consumer objects with an integer hash code representation.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!