System.Generics.Collections.TDictionary.Create

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

constructor Create; overload;
constructor Create(ACapacity: Integer); overload;
constructor Create(const AComparer: IEqualityComparer<TKey>); overload;
constructor Create(ACapacity: Integer; const AComparer: IEqualityComparer<TKey>); overload;
constructor Create(const Collection: TEnumerable<TPair<TKey,TValue>>); overload;
constructor Create(const Collection: TEnumerable<TPair<TKey,TValue>>; const AComparer: IEqualityComparer<TKey>); overload;

C++

__fastcall TDictionary__2()/* overload */;
__fastcall TDictionary__2(int ACapacity)/* overload */;
__fastcall TDictionary__2(const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */;
__fastcall TDictionary__2(int ACapacity, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */;
__fastcall TDictionary__2(TEnumerable__1<TPair__2<TKey,TValue> >* const Collection)/* overload */;
__fastcall TDictionary__2(TEnumerable__1<TPair__2<TKey,TValue> >* const Collection, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
constructor public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TDictionary

Description

Crée un dictionnaire.

Cette méthode surchargée crée et initialise une instance de dictionnaire. Diverses combinaisons de paramètres peuvent être utilisées pour spécifier la capacité initiale ACapacity, une fonction de comparaison d'égalité AComparer ou une collection initiale d'éléments clé-valeur Collection.

Voir aussi