Example #1
0
 /// <summary>
 /// A query that bypasses a specified number of elements in a sequence and then returns the remaining elements.
 /// </summary>
 /// <typeparam name="TSource">The type of the elements of source.</typeparam>
 /// <param name="query">A query to return elements from.</param>
 /// <param name="count">The number of elements to skip before returning the remaining elements.</param>
 /// <returns>A query that returns a sequence containing the elements that occur after the specified index in the input sequence.</returns>
 public static IQueryExpr <IEnumerable <TSource> > Skip <TSource>(this IQueryExpr <IEnumerable <TSource> > query, int count)
 {
     return(new QueryExpr <IEnumerable <TSource> >(QExpr.NewSkip(Expression.Constant(count), query.Expr)));
 }