AdvisableCollection<T>.GetRange Method |
Creates a shallow copy of a range of elements in the source AdvisableCollection<T>.
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public List<T> GetRange( int index, int count )
Parameters
- index
- Type: System.Int32
The zero-based index at which the range starts. - count
- Type: System.Int32
The number of elements in the range.
Return Value
Type: List<T>A shallow copy of a range of elements in the source AdvisableCollection<T>.
Exception | 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>. |