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

定義

指定した SortedDictionary<TKey,TValue>.KeyCollection 内のキーを反映する、SortedDictionary<TKey,TValue> クラスの新しいインスタンスを初期化します。

public:
 KeyCollection(System::Collections::Generic::SortedDictionary<TKey, TValue> ^ dictionary);
public KeyCollection (System.Collections.Generic.SortedDictionary<TKey,TValue> dictionary);
new System.Collections.Generic.SortedDictionary<'Key, 'Value>.KeyCollection : System.Collections.Generic.SortedDictionary<'Key, 'Value> -> System.Collections.Generic.SortedDictionary<'Key, 'Value>.KeyCollection
Public Sub New (dictionary As SortedDictionary(Of TKey, TValue))

パラメーター

例外

dictionarynullです。

注釈

静的SortedDictionary<TKey,TValue>.KeyCollectionコピーではありません。代わりに、元SortedDictionary<TKey,TValue>SortedDictionary<TKey,TValue>.KeyCollectionキーを参照します。 したがって、変更が SortedDictionary<TKey,TValue> 継続 SortedDictionary<TKey,TValue>.KeyCollectionされ、.

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

適用対象