public static Task <bool> MovePrevAsync <T>(this IDataCursor <T> cursor) { if (cursor is null) { throw new ArgumentNullException(nameof(cursor)); } return(cursor.MoveAsync(cursor.CurrentIndex - 1)); }
public static Task <bool> MoveFirstAsync <T>(this IDataCursor <T> cursor) { if (cursor is null) { throw new ArgumentNullException(nameof(cursor)); } return(cursor.MoveAsync(0)); }