API: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

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

System.Generics.Defaults.TDelegatedEqualityComparer inherits from System.Generics.Defaults.TEqualityComparer. All content below this line refers to System.Generics.Defaults.TEqualityComparer.

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