Foley .NET Utilities Class Library

List2Base.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]
MustOverride Public Function SubList( _
   ByVal index As Integer, _
   ByVal count As Integer _
) As IList Implements _
   IList2.SubList
[C#]
public abstract 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.

Implements

IList2.SubList

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

List2Base Class | List2Base Members | Foley.Utilities.Collections Namespace