IList<T>.AsReadOnlyList Method

Returns the list as read-only list.

Namespace: Spring.Collections
public
 function AsReadOnlyList: IReadOnlyList<T>;

Return Value

Type: IReadOnlyList<T>

 

This method will not perform a copy but will return the same instance as IReadOnlyList<T>.