Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

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

Summary

Creates and returns a read-only wrapper around this collection. Note: a new wrapper is created on every call. Consider caching it.

Generic type parameters

TThis type parameter is not documented.