Wraps a ReadOnlyCollection around the specified list.
public static ReadOnlyCollection<T> AsReadOnly<T>(this IList<T> list)
parameter | description |
---|---|
T | The type of item in the list. |
list | The list. |
A ReadOnlyCollection that wraps the list.
- class ListUtility
- namespace Faithlife.Utility