GetSublistAsync Method
GetSublistAsync(int, int)
Returns a view of the portion of this list between the specified
fromIndex
, inclusive, and toIndex
, exclusive.
Declaration
Task<IReadOnlyList<T>> GetSublistAsync(int fromIndex, int toIndex)
Parameters
int | fromIndex | low endpoint (inclusive) of the subList |
int | toIndex | high endpoint (exclusive) of the subList |
Returns
Task<IReadOnlyList<T>> | a view of the specified range within this list |
Remarks
If fromIndex
and toIndex are equal, the returned list is empty.