SortedDictionary<TKey,TValue>.ValueCollection Construtor

Definição

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

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

Não SortedDictionary<TKey,TValue>.ValueCollection é uma cópia estática; em vez disso, ela SortedDictionary<TKey,TValue>.ValueCollection se refere aos valores no original SortedDictionary<TKey,TValue>. Portanto, as alterações na continuação SortedDictionary<TKey,TValue> a serem refletidas no SortedDictionary<TKey,TValue>.ValueCollection.

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

Aplica-se a