SortedDictionary<TKey,TValue>.KeyCollection Construtor

Definição

Inicializa uma nova instância da SortedDictionary<TKey,TValue>.KeyCollection classe que reflete as chaves no especificado 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))

Parâmetros

Exceções

dictionary é null.

Comentários

Não SortedDictionary<TKey,TValue>.KeyCollection é uma cópia estática; em vez disso, ela SortedDictionary<TKey,TValue>.KeyCollection faz referência às chaves no original SortedDictionary<TKey,TValue>. Portanto, as alterações na continuação SortedDictionary<TKey,TValue> a serem refletidas no SortedDictionary<TKey,TValue>.KeyCollection.

Esse construtor é uma operação O(1).

Aplica-se a