Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: RT.Util.ExtensionMethods.ReadOnlyCollectionExtensions

Summary

Extension methods related to read-only collections.

Static methods

ReadOnlyCollection<T>
AsReadOnly<T>(this ICollection<T> coll)
Creates and returns a read-only wrapper around this collection. Note: a new wrapper is created on every call. Consider caching it.
ReadOnlyCollection<T>
AsReadOnly<T>(this ICollection<T> coll, ref ReadOnlyCollection<T> cache)
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>
AsReadOnly<TK, TV>(this IDictionary<TK, TV> dict)
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>
AsReadOnly<TK, TV>(this IDictionary<TK, TV> dict, ref ReadOnlyDictionary<TK, TV> cache)
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.