Generics.Defaults.TDelegatedEqualityComparer
Contents |
Delphi Information
From Generics.Defaults.pas
TDelegatedEqualityComparer<T> = class(TEqualityComparer<Generics.Defaults.TDelegatedEqualityComparer<T>.T>)
Unit: Generics.Defaults
Type: class
Inherited Class Members: Generics.Defaults.TDelegatedEqualityComparer Members
Class Methods: Generics.Defaults.TDelegatedEqualityComparer Methods
Class Constructors & Destructors: Generics.Defaults.TDelegatedEqualityComparer Constructors
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 Samples