Summary
Extension methods related to read-only collections.
Static methods
ReadOnlyCollection<T> | |
Creates and returns a read-only wrapper around this collection. Note: a new wrapper is created on every call.
Consider caching it. |
ReadOnlyCollection<T> | |
Gets a read-only wrapper around this collection. If cache is already a wrapper for this
collection returns that, otherwise creates a new wrapper, stores it in cache, and returns
that. |
ReadOnlyDictionary<TK, TV> | |
Creates and returns a read-only wrapper around this dictionary. Note: a new wrapper is created on every call.
Consider caching it. |
ReadOnlyDictionary<TK, TV> | |
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. |