TCollections.CreateSortedDictionary<TKey,TValue> Method

Overloads

CreateSortedDictionary<TKey,TValue>(TDictionaryOwnerships)

Delphi
class function CreateSortedDictionary<TKey,TValue>(ownerships: TDictionaryOwnerships): IDictionary<TKey,TValue>

Type Parameters

TKey
TValue

Parameters

Returns

IDictionary<TKey, TValue>

CreateSortedDictionary<TKey,TValue>(IComparer<TKey>, TDictionaryOwnerships)

Delphi
class function CreateSortedDictionary<TKey,TValue>(const keyComparer: IComparer<TKey>; ownerships: TDictionaryOwnerships): IDictionary<TKey,TValue>

Type Parameters

TKey
TValue

Parameters

keyComparer
IComparer<TKey>

Returns

IDictionary<TKey, TValue>

CreateSortedDictionary<TKey,TValue>(IEqualityComparer<TValue>, TDictionaryOwnerships)

Delphi
class function CreateSortedDictionary<TKey,TValue>(const valueComparer: IEqualityComparer<TValue>; ownerships: TDictionaryOwnerships): IDictionary<TKey,TValue>

Type Parameters

TKey
TValue

Parameters

valueComparer
IEqualityComparer<TValue>

Returns

IDictionary<TKey, TValue>

CreateSortedDictionary<TKey,TValue>(IComparer<TKey>, IEqualityComparer<TValue>, TDictionaryOwnerships)

Delphi
class function CreateSortedDictionary<TKey,TValue>(const keyComparer: IComparer<TKey>; const valueComparer: IEqualityComparer<TValue>; ownerships: TDictionaryOwnerships): IDictionary<TKey,TValue>

Type Parameters

TKey
TValue

Parameters

keyComparer
IComparer<TKey>
valueComparer
IEqualityComparer<TValue>

Returns

IDictionary<TKey, TValue>