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

Definice

Inicializuje novou instanci ReadOnlyDictionary<TKey,TValue> třídy, která je obálkou kolem zadaného slovníku.

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>

Slovník, který chcete zabalit.

Výjimky

dictionary je null.

Platí pro