コード例 #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));
        }
コード例 #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));
        }