SortedDictionary<TKey,TValue>.KeyCollection Construtor
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da SortedDictionary<TKey,TValue>.KeyCollection classe que reflete as chaves no .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
- dictionary
- SortedDictionary<TKey,TValue>
Cujas SortedDictionary<TKey,TValue> chaves estão refletidas no novo SortedDictionary<TKey,TValue>.KeyCollection.
Exceções
dictionary é null.
Observações
O SortedDictionary<TKey,TValue>.KeyCollection não é uma cópia estática; em vez disso, o SortedDictionary<TKey,TValue>.KeyCollection refere-se às chaves no original SortedDictionary<TKey,TValue>. Portanto, as alterações ao SortedDictionary<TKey,TValue> continuam a ser refletidas no SortedDictionary<TKey,TValue>.KeyCollection.
Este construtor é uma operação O(1).