System.IEquatable.Equals

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function Equals(Value: T): Boolean;

C++

virtual bool __fastcall Equals(T Value) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System IEquatable

Description

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

Use 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.



See Also