Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: ReadOnlyDictionary<TK, TV> AsReadOnly<TK, TV>(this IDictionary<TK, TV>, ref ReadOnlyDictionary<TK, TV>)

Declaration

public static ReadOnlyDictionary<TK, TV> AsReadOnly<TK, TV>(
    this IDictionary<TK, TV> dict,
    ref ReadOnlyDictionary<TK, TV> cache
)

Summary

Gets a read-only wrapper around this dictionary. If cache is already a wrapper for this dictionary returns that, otherwise creates a new wrapper, stores it in cache, and returns that.

Generic type parameters

TKThis type parameter is not documented.
TVThis type parameter is not documented.