System.TObject.GetHashCode

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetHashCode: Integer; virtual;

C++

virtual int __fastcall GetHashCode(void);

Properties

Type Visibility Source Unit Parent
function public
System.pas
systobj.h
System TObject

Description

Returns an integer containing the hash code.

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

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

See Also