Foley .NET Utilities Class Library

IList2.SubList Method 

When implemented by a class, provides a view of the list with the specified number of the elements starting at the position specified.

[Visual Basic]
Function SubList( _
   ByVal index As Integer, _
   ByVal count As Integer _
) As IList
[C#]
IList SubList(
   int index,
   int count
);

Parameters

index
Starting index for the view of elements from the list.
count
The number of elements to include in the view of the list.

Return Value

A view of list.

Remarks

The list that is returned is just a view, it is still backed by the orignal list. Any changes you make to it will be reflected in the orignal list.

See Also

IList2 Interface | IList2 Members | Foley.Utilities.Collections Namespace