RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IComparable Interface

IComparable is the generic interface used to compare two objects.

Pascal
IComparable<T> = interface;
C++
template <T>
__interface IComparable;

IComparable is implemented by classes that have to support a comparison between instances. IComparable exposes a single method called CompareTo. CompareTo can be used later to compare two instances of the same class. 

 

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