Esempio n. 1
0
 /// <summary>
 /// Creates a query that bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
 /// </summary>
 /// <typeparam name="TSource">The type of the elements of source.</typeparam>
 /// <param name="query">The query to return elements from.</param>
 /// <param name="predicate">A function to test each element for a condition.</param>
 /// <returns>A query that contains the elements from the input sequence starting at the first element in the linear series that does not pass the test specified by predicate.</returns>
 public static IQueryExpr <IEnumerable <TSource> > SkipWhile <TSource>(this IQueryExpr <IEnumerable <TSource> > query, Expression <Func <TSource, bool> > predicate)
 {
     return(new QueryExpr <IEnumerable <TSource> >(QExpr.NewSkipWhile(predicate, query.Expr)));
 }