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>.KeyCollection 원래 SortedDictionary<TKey,TValue>의 키를 다시 참조합니다. 따라서 에 대한 SortedDictionary<TKey,TValue> 변경 내용은 에 계속 반영됩니다 SortedDictionary<TKey,TValue>.KeyCollection.

이 생성자는 O(1) 작업입니다.

적용 대상