RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IEqualityComparer.Equals Method

Equals is a generic method used to check the equality of two values.

Pascal
function Equals(const Left: T; const Right: T): Boolean;
C++
__fastcall Boolean Equals(const T Left, const T Right);

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!