System.Generics.Defaults.TCustomComparer.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 | protected | System.Generics.Defaults.pas System.Generics.Defaults.hpp |
System.Generics.Defaults | TCustomComparer |
Description
Equals is a generic method that checks whether two values are equal.
Use Equals to check whether two values are equal. Any class that derives from TCustomComparer is expected to implement the Equals method.
The return value of the Equals method must be one of the following.
Return value | Description |
---|---|
False |
Left is different from Right. |
True |
Left is equal to Right. |
See Also
- System.Generics.Defaults.TCustomComparer.GetHashCode
- System.Generics.Defaults.TCustomComparer.Compare
- System.Generics.Defaults.IComparer
- System.Generics.Defaults.IEqualityComparer
- System.Generics.Defaults.TEqualityComparison.Invoke
- System.Generics.Defaults.TOrdinalIStringComparer.Equals