System.Generics.Defaults.IEqualityComparer.Equals
Delphi
function Equals(const Left, Right: T): Boolean;
C++
virtual bool __fastcall Equals(const T Left, const T Right) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Generics.Defaults.pas System.Generics.Defaults.hpp |
System.Generics.Defaults | IEqualityComparer |
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 implements the IEqualityComparer interface is expected to provide the implementation for 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. |