Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: ReadOnlyCollection<T> AsReadOnly<T>(this ICollection<T>, ref ReadOnlyCollection<T>)

Declaration

public static ReadOnlyCollection<T> AsReadOnly<T>(
    this ICollection<T> coll,
    ref ReadOnlyCollection<T> cache
)

Summary

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.

Generic type parameters

TThis type parameter is not documented.