Sign in Join
FPDoc Onlineexperiment

TObject.GetHashCode function

Member of TObjectpublicIn unit System

Return a hash code for the object.

Declaration

pascal
function GetHashCode: PtrInt; virtual

Description

GetHashCode should return a hash code for the object. By default, the numerical (integer) address of Self is returned.

Descendent classes can use this to generate better suitable values to be used in a hash table.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.