System.Generics.Defaults.TDelegatedEqualityComparer.Create
Delphi
constructor Create(const AEquals: TEqualityComparison<T>; const AGetHashCode: THasher<T>);
C++
__fastcall TDelegatedEqualityComparer__1(const System::DelphiInterface<TEqualityComparison__1<T> > AEquals, const System::DelphiInterface<THasher__1<T> > AGetHashCode);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Generics.Defaults.pas System.Generics.Defaults.hpp |
System.Generics.Defaults | TDelegatedEqualityComparer |
Description
Creates a new instance of the TDelegatedEqualityComparer class.
Use the Create method to create a new instance of the TDelegatedEqualityComparer class. AEquals is a reference to a TEqualityComparison routine that will handle all checks for equality. AGetHashCode is a reference to a THasher routine which will handle all requests to generate a hash code.
See Also
- System.Generics.Defaults.TDelegatedEqualityComparer.Destroy
- System.Generics.Defaults.TDelegatedEqualityComparer.Equals
- System.Generics.Defaults.TDelegatedEqualityComparer.GetHashCode
- System.Generics.Defaults.IEqualityComparer
- System.Generics.Defaults.TEqualityComparer