SortedDictionary<TKey,TValue>.ValueCollection Costruttore

Definizione

Inizializza una nuova istanza della SortedDictionary<TKey,TValue>.ValueCollection classe che riflette i valori nell'oggetto specificato 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))

Parametri

dictionary
SortedDictionary<TKey,TValue>

Oggetto i SortedDictionary<TKey,TValue> cui valori vengono riflessi nel nuovo SortedDictionary<TKey,TValue>.ValueCollectionoggetto .

Eccezioni

dictionary è null.

Commenti

non SortedDictionary<TKey,TValue>.ValueCollection è una copia statica, ma fa SortedDictionary<TKey,TValue>.ValueCollection riferimento ai valori nell'oggetto originale SortedDictionary<TKey,TValue>. Di conseguenza, le modifiche apportate all'oggetto SortedDictionary<TKey,TValue> continuano a essere riflesse nell'oggetto SortedDictionary<TKey,TValue>.ValueCollection.

Questo costruttore è un'operazione O(1).

Si applica a