SortedDictionary<TKey,TValue>.ValueCollection Constructor

Definición

Inicializa una nueva instancia de la SortedDictionary<TKey,TValue>.ValueCollection clase que refleja los valores del 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

Excepciones

dictionary es null.

Comentarios

no SortedDictionary<TKey,TValue>.ValueCollection es una copia estática; en su lugar, SortedDictionary<TKey,TValue>.ValueCollection hace referencia a los valores del objeto original SortedDictionary<TKey,TValue>. Por lo tanto, los cambios en el SortedDictionary<TKey,TValue> objeto continúan reflejados en .SortedDictionary<TKey,TValue>.ValueCollection

Este constructor es una operación de O(1).

Se aplica a