Open sandboxFocus

Method GetRange

GetRange(int, int)

Creates a shallow copy of a range of elements in the source AdvisableCollection<T>.

Declaration
public List<T> GetRange(int index, int count)
Parameters
Type Name Description
int index

The zero-based index at which the range starts.

int count

The number of elements in the range.

Returns
Type Description
List<T>

A shallow copy of a range of elements in the source AdvisableCollection<T>.

Exceptions
Type Condition
ArgumentOutOfRangeException

index is less than 0.

-or-

count is less than 0.

ArgumentException

index and count do not denote a valid range of elements in the AdvisableCollection<T>.