PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Collection<T>Get­Range
Open sandboxFocus

AdvisableCollection<T>.GetRange Method

GetRange(Int32, Int32)

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
Int32 index

The zero-based index at which the range starts.

Int32 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.

System.ArgumentException

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