Algorithms..::..Range<(Of <(<'T>)>)> Method (IList<(Of <(<'T>)>)>, Int32, Int32)
Returns a view onto a sub-range of a list. Items from list are not copied; the
returned IList<T> is simply a different view onto the same underlying items. Changes to list
are reflected in the view, and vice versa. Insertions and deletions in the view change the size of the
view, but insertions and deletions in the underlying list do not.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
Type Parameters
- T
- The type of the items in the list.
Parameters
- list
- Type: IList<(Of <(<'T>)>)>
The list to view.
- start
- Type: Int32
The starting index of the view.
- count
- Type: Int32
The number of items in the view.
Return Value
A list that is a view onto the given sub-list.Exceptions
Exception | Condition |
---|---|
ArgumentNullException | list is null. |
ArgumentOutOfRangeException | start or count is negative. |
ArgumentOutOfRangeException | start + count is greater than the size of list. |