Delphi How To Use The GetHashCode Method in DelphiVCL.Application

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
How To Use The GetHashCode Method in DelphiVCL.Application
By Muhammad Azizul Hakim August 9, 2021

The GetHashCode method or DelphiVCL.Application.GetHashCode is used to return 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.

Notes:
  • GetHashCode is supposed to be overridden in user-derived classes, to provide consumer objects with an integer hash code representation.
  • The sign of the hash code depends on the address of the particular object instance. A negative hash code can appear for object instances that reside at higher memory locations.

How to browse the properties, methods, and built-in properties of the DelphiVCL.Application.GetHashCode?

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.GetHashCode using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.GetHashCode)
See the responses in our Windows command prompt:
1628524788073.png
You can also read short information about the DelphiVCL.Application.GetHashCode using the print() command:
Python:
print(DelphiVCL.Application.GetHashCode)
print(DelphiVCL.Application.GetHashCode.__doc__)
See the responses in our Windows command prompt:
1628524823700.png