System.Generics.Defaults.TEqualityComparer.Equals
Delphi
function Equals(const Left, Right: T): Boolean;
C++
HIDESBASE virtual bool __fastcall Equals(const T Left, const T Right) = 0 /* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Generics.Defaults.pas System.Generics.Defaults.hpp |
System.Generics.Defaults | TEqualityComparer |
Description
Equals is a generic method used to check the equality of two values.
Use Equals to check the equality of two values of the same type. Any class that descends from TEqualityComparer is expected to implement the Equals method.
The return value of Equals must be one of the following.
Return value | Description |
---|---|
False |
Left is different from Right. |
True |
Left is equal to Right. |
See Also
Code Examples