SortedDictionary<TKey,TValue>.ValueCollection Konstruktor

Definice

Inicializuje novou instanci SortedDictionary<TKey,TValue>.ValueCollection třídy, která odráží hodnoty v zadané 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))

Parametry

Výjimky

dictionary je null.

Poznámky

Nejedná se o statickou kopii. SortedDictionary<TKey,TValue>.ValueCollection Místo SortedDictionary<TKey,TValue>.ValueCollection toho odkazuje zpět na hodnoty v původním SortedDictionary<TKey,TValue>souboru . Proto se změny nadále SortedDictionary<TKey,TValue> projeví v SortedDictionary<TKey,TValue>.ValueCollectionsouboru .

Tento konstruktor je operace O(1).

Platí pro