ListUtility.AsReadOnly<T> method

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.

Return Value

A ReadOnlyCollection that wraps the list.

See Also