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

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

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

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>

 

Overrides

TListBase<T>.GetRange(Integer,Integer)

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.