Show: Delphi C++
Display Preferences

System.Generics.Defaults.TEqualityComparer

From RAD Studio API Documentation
Jump to: navigation, search

System.TInterfacedObjectSystem.TObjectTEqualityComparer

Delphi

TEqualityComparer<T> = class(TInterfacedObject, IEqualityComparer<T>)

C++

template<typename T> class PASCALIMPLEMENTATION TEqualityComparer__1 : public System::TInterfacedObject

Properties

Type Visibility Source Unit Parent
class public
System.Generics.Defaults.pas
System.Generics.Defaults.hpp
System.Generics.Defaults System.Generics.Defaults

Description

TEqualityComparer is a generic base for classes that implement the IEqualityComparer interface.

TEqualityComparer is an abstract class for IEqualityComparer implementations and a provider of default IEqualityComparer implementations.

Use TEqualityComparer as a base for custom equality comparer classes. Both the Equals and GetHashCode methods are abstract and must be implemented in descendant classes.

TEqualityComparer also provides the possibility to create a default comparer for a given data type.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance