SortedDictionary<TKey,TValue>.ValueCollection コンストラクター

定義

指定したSortedDictionary<TKey,TValue>.ValueCollectionの値を反映する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))

パラメーター

例外

dictionarynullです。

注釈

SortedDictionary<TKey,TValue>.ValueCollectionは静的コピーではありません。代わりに、SortedDictionary<TKey,TValue>.ValueCollectionは元のSortedDictionary<TKey,TValue>の値を参照します。 そのため、 SortedDictionary<TKey,TValue> への変更は引き続き SortedDictionary<TKey,TValue>.ValueCollectionに反映されます。

このコンストラクターは O(1) 操作です。

適用対象