TDictionary<TKey,TValue>.AsReadOnlyDictionary Method

Returns the dictionary as read-only dictionary.

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

Return Value

Type: IReadOnlyDictionary<TKey, TValue>

 

Implements

IDictionary<TKey,TValue>.AsReadOnlyDictionary

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