Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public static Task <bool> MoveFirstAsync <T>(this IDataCursor <T> cursor)
        {
            if (cursor is null)
            {
                throw new ArgumentNullException(nameof(cursor));
            }

            return(cursor.MoveAsync(0));
        }