[]
Returns a range of elements from the list starting at the specified index.
public static IEnumerable<T> Range<T>(this IList<T> list, int startIndex, int count)
Type | Name | Description |
---|---|---|
IList<T> | list | The list from which to retrieve elements. |
int | startIndex | The zero-based starting index of the range. |
int | count | The number of elements to retrieve. |
Type | Description |
---|---|
IEnumerable<T> | A sequence of elements from the list. |
Name | Description |
---|---|
T | The type of elements in the list. |