System.IComparable

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

IComparable = interface(IInterface)
IComparable<T> = interface(IComparable)

C++

__interface IComparable  : public IInterface
template<typename T> __interface IComparable__1  : public IComparable

Properties

Type Visibility Source Unit Parent
interface
class
public
System.pas
System.hpp
System System

Description

IComparable is the generic interface used to compare two objects.

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

See Also