TObject.GetHashCode

Return a hash code for the object

Declaration

Source position: objpash.inc line 257

public 
  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

Name Description
TObject.Equals Check if two objects are equal.
TObject.ToString Return a string representation for the object