Show: Delphi C++
Display Preferences

System.Generics.Defaults.TDelegatedEqualityComparer

From RAD Studio API Documentation
Jump to: navigation, search

System.Generics.Defaults.TEqualityComparerSystem.TInterfacedObjectSystem.TObjectTDelegatedEqualityComparer

Delphi

TDelegatedEqualityComparer<T> = class(TEqualityComparer<T>)

C++

template<typename T> class PASCALIMPLEMENTATION TDelegatedEqualityComparer__1 : public TEqualityComparer__1<T>

Properties

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

Description

TDelegatedEqualityComparer delegates all calls to user-provided callback routines.

The primary role of TDelegatedEqualityComparer is to delegate all calls made to its GetHashCode and Equals methods to the user-supplied routines.

Use TDelegatedEqualityComparer when creating a descendant class from TEqualityComparer is not an option. Another useful feature of TDelegatedEqualityComparer is the fact that anonymous methods can be used in Delphi language to provide the required callbacks inline.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance