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) 操作です。

適用対象