Language

ReadOnlyDictionary(IDictionary) Constructor

Definition

Initializes a new instance of the ReadOnlyDictionary class that is a wrapper around the specified dictionary.

public:
 ReadOnlyDictionary(System::Collections::Generic::IDictionary ^ dictionary);
public ReadOnlyDictionary(System.Collections.Generic.IDictionary 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))

Parameters

dictionary
IDictionary

The dictionary to wrap.

Exceptions

dictionary is null.

Applies to