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

Definición

Inicializa una nueva instancia de la clase ReadOnlyDictionary<TKey,TValue> que es un contenedor para el diccionario especificado.

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))

Parámetros

dictionary
IDictionary<TKey,TValue>

Diccionario que se va a ajustar.

Excepciones

dictionary es null.

Se aplica a