SortedDictionary<TKey,TValue>.ValueCollection(SortedDictionary<TKey,TValue>) 构造函数

定义

初始化 SortedDictionary<TKey,TValue>.ValueCollection 类的新实例,该实例反映指定的 SortedDictionary<TKey,TValue> 中的值。Initializes a new instance of the SortedDictionary<TKey,TValue>.ValueCollection class that reflects the values in the specified 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))

参数

异常

dictionarynulldictionary is null.

注解

@No__t 0 不是静态副本;相反,SortedDictionary<TKey,TValue>.ValueCollection 返回到原始 SortedDictionary<TKey,TValue> 中的值。The SortedDictionary<TKey,TValue>.ValueCollection is not a static copy; instead, the SortedDictionary<TKey,TValue>.ValueCollection refers back to the values in the original SortedDictionary<TKey,TValue>. 因此,@no__t 的更改将继续在 @no__t 中反映出来。Therefore, changes to the SortedDictionary<TKey,TValue> continue to be reflected in the SortedDictionary<TKey,TValue>.ValueCollection.

此构造函数的运算复杂度为 O (1)。This constructor is an O(1) operation.

适用于