ReadOnlyListBaseTRange 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.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic virtual IList<T> Range(
int start,
int count
)
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:
IListTA list that is a view onto the given sub-part of this list.
Exceptions
RemarksThis method can be used to apply an algorithm to a portion of a list. For example:
Algorithms.Reverse(deque.Range(3, 6))
will return the reverse opf the 6 items beginning at index 3.
See Also