ReadOnlyDictionary<TKey,TValue>(IDictionary<TKey,TValue>) Konstruktor

Definicja

Inicjuje ReadOnlyDictionary<TKey,TValue> nowe wystąpienie klasy, która jest otoką wokół określonego słownika.

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

Parametry

dictionary
IDictionary<TKey,TValue>

Słownik do opakowania.

Wyjątki

dictionary to null.

Dotyczy