IDictionary<TKey,TValue>.AsReadOnlyDictionary Method

Returns the dictionary as read-only dictionary.

Namespace: Spring.Collections
public
 function AsReadOnlyDictionary: IReadOnlyDictionary<TKey, TValue>;

Return Value

Type: IReadOnlyDictionary<TKey, TValue>

 

This method will not perform a copy but will return the same instance as IReadOnlyDictionary<TKey, TValue>.