Wraps the dictionary in a read-only dictionary.
public static ReadOnlyDictionary<TKey, TValue> AsReadOnly<TKey, TValue>(
this IDictionary<TKey, TValue> dictionary)
| parameter | description |
|---|---|
| TKey | The type of the key. |
| TValue | The type of the value. |
| dictionary | The dictionary to wrap. |
The read-only dictionary.