DictionaryUtility.AsReadOnly<TKey,TValue> method

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.

Return Value

The read-only dictionary.

See Also