GetSublistAsync Method
GetSublistAsync(Int32, Int32)
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
Int32 | fromIndex | low endpoint (inclusive) of the subList |
Int32 | 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.