RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IEquatable.Equals Method

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

Pascal
function Equals(Value: T): Boolean;
C++
__fastcall Boolean Equals(T Value);

Use the Equals to check the equality of two objects of the same class. Any class that implements the IEquatable 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  
The object is different from Value.  
True  
The object is equal to Value.  

 

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