SortedDictionary<TKey,TValue>.ValueCollection Construtor

Definição

Inicializa uma nova instância da classe SortedDictionary<TKey,TValue>.ValueCollection que reflete os valores no SortedDictionary<TKey,TValue> especificado.

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

Parâmetros

Exceções

dictionary é null.

Comentários

O SortedDictionary<TKey,TValue>.ValueCollection não é uma cópia estática; em vez disso, o SortedDictionary<TKey,TValue>.ValueCollection faz referência aos valores no original SortedDictionary<TKey,TValue>. Portanto, as alterações no SortedDictionary<TKey,TValue> continuam a ser refletidas no SortedDictionary<TKey,TValue>.ValueCollection.

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

Aplica-se a