System.Generics.Defaults.TCustomComparer.Equals

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Equals(const Left, Right: T): Boolean;

C++

HIDESBASE virtual bool __fastcall Equals(const T Left, const T Right) = 0 /* overload */;

Properties

Type Visibility Source Unit Parent
function protected
System.Generics.Defaults.pas
System.Generics.Defaults.hpp
System.Generics.Defaults TCustomComparer

Description

Equals is a generic method that checks whether two values are equal.

Use Equals to check whether two values are equal. Any class that derives from TCustomComparer is expected to implement the Equals method.

The return value of the Equals method must be one of the following.


Return value Description

False

Left is different from Right.

True

Left is equal to Right.


See Also

Code Examples