Click or drag to resize
ListBaseTRange Method
Returns a view onto a sub-range of this list. Items are not copied; the returned IList<T> is simply a different view onto the same underlying items. Changes to this 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: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public virtual IList<T> Range(
	int start,
	int count
)

Parameters

start
Type: SystemInt32
The starting index of the view.
count
Type: SystemInt32
The number of items in the view.

Return Value

Type: IListT
A list that is a view onto the given sub-part of this list.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionstart or count is negative.
ArgumentOutOfRangeExceptionstart + count is greater than the size of the list.
Remarks

This method can be used to apply an algorithm to a portion of a list. For example:

Algorithms.ReverseInPlace(deque.Range(3, 6))
will reverse the 6 items beginning at index 3.
See Also