SortedDictionary<TKey,TValue>.KeyCollection コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した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))
パラメーター
- dictionary
- SortedDictionary<TKey,TValue>
キーが新しいSortedDictionary<TKey,TValue>に反映されるSortedDictionary<TKey,TValue>.KeyCollection。
例外
dictionary は nullです。
注釈
SortedDictionary<TKey,TValue>.KeyCollectionは静的コピーではありません。代わりに、SortedDictionary<TKey,TValue>.KeyCollectionは元のSortedDictionary<TKey,TValue>のキーを参照します。 そのため、 SortedDictionary<TKey,TValue> への変更は引き続き SortedDictionary<TKey,TValue>.KeyCollectionに反映されます。
このコンストラクターは O(1) 操作です。