IReadOnlyList<T>.GetRange(Integer,Integer) Method

Creates a new list that contains a range of the elements in the original list.

Namespace: Spring.Collections
public
 function GetRange(index, count: Integer): IList<T>;

Parameters

index
Type: Integer

The zero-based index at which the range starts.

count
Type: Integer

The number of elements in the range.

Return Value

Type: IList<T>

 

If the list contains reference types the elements in the returned list point to the same instance as the elements in the original list. Also if the original list is a Spring.Collections.Lists.TObjectList<T> it still owns the objects.