Unit 'System' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TObject.GetHashCode

Return a hash code for the object.

Declaration

Source position: objpash.inc line 310

public function TObject.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

TObject.ToString

  

Return a string representation for the object.

TObject.Equals

  

Check if two objects are equal.


Documentation generated on: Oct 27 2024