SortedDictionary<TKey,TValue>.KeyCollection Constructeur

Définition

Initialise une nouvelle instance de la SortedDictionary<TKey,TValue>.KeyCollection classe qui reflète les clés dans le fichier spécifié SortedDictionary<TKey,TValue>.

public:
 KeyCollection(System::Collections::Generic::SortedDictionary<TKey, TValue> ^ dictionary);
public KeyCollection(System.Collections.Generic.SortedDictionary<TKey,TValue> dictionary);
new System.Collections.Generic.SortedDictionary<'Key, 'Value>.KeyCollection : System.Collections.Generic.SortedDictionary<'Key, 'Value> -> System.Collections.Generic.SortedDictionary<'Key, 'Value>.KeyCollection
Public Sub New (dictionary As SortedDictionary(Of TKey, TValue))

Paramètres

Exceptions

dictionary a la valeur null.

Remarques

Il SortedDictionary<TKey,TValue>.KeyCollection ne s’agit pas d’une copie statique ; à la place, le SortedDictionary<TKey,TValue>.KeyCollection fait référence aux clés dans l’original SortedDictionary<TKey,TValue>. Par conséquent, les modifications apportées à la SortedDictionary<TKey,TValue> continue à être reflétées dans le SortedDictionary<TKey,TValue>.KeyCollection.

Ce constructeur est une opération O(1).

S’applique à