System.Generics.Defaults.TEqualityComparer.Default

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function Default: IEqualityComparer<T>; static; inline;

C++

static System::DelphiInterface<IEqualityComparer__1<T> > __fastcall Default();

Properties

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

Description

Default returns an instance of TEqualityComparer for a given type.

Use the Default method to obtain an instance of TEqualityComparer for a given type. RTTI is used to determine the type information and to select the most appropriate implementation of TEqualityComparer. For example, calling TEqualityComparer<String>.Default will return an instance of TEqualityComparer that can compare string types.

See Also

Code Examples