TListBase<T>.AsReadOnlyList Method

Returns the list as read-only list.

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

Return Value

Type: IReadOnlyList<T>

 

Implements

IList<T>.AsReadOnlyList
IList.AsReadOnlyList

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