RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObject::GetHashCode Method

Returns an integer containing the hash code.

Pascal
function GetHashCode: Integer; virtual;
C++
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!