System.Generics.Defaults.TComparer.Default
Delphi
class function Default: IComparer<T>;
C++
__classmethod System::DelphiInterface<IComparer__1<T> > __fastcall Default();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Generics.Defaults.pas System.Generics.Defaults.hpp |
System.Generics.Defaults | TComparer |
Description
Default returns an instance of TComparer for a given type.
Use the Default method to obtain an instance of TComparer for a given type. RTTI is used to determine the type information and to select the most appropriate implementation of TComparer. For example, calling TComparer<String>.Default returns an instance of TComparer that can compare string types.
See Also
Code Examples