Show: Delphi
C++
Display Preferences
System.TObject.Equals
From XE2 API Documentation
Delphi
function Equals(Obj: TObject): Boolean; virtual;
C++
virtual bool __fastcall Equals(TObject *Obj);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.pas systobj.h |
System | TObject |
Description
Checks whether the current instance and the parameter are equal.
The function has one parameter, Obj, of type TObject.
By default, the Equals method shows whether the addresses corresponding to the object and the parameter are identical. The method returns a boolean value that represents the equality between the two addresses.
Note: Equals is supposed to be overridden in user-derived classes, to provide consumer objects with an equality determining function.