Esempio n. 1
0
 /// <summary>
 /// A query that performs the specified action on each element of the source query.
 /// </summary>
 /// <param name="query">An query to return elements from.</param>
 /// <param name="action">The Action delegate to perform on each element of the query.</param>
 /// <returns>A query that performs the action on each element.</returns>
 public static IQueryExpr ForEach <TSource>(this IQueryExpr <IEnumerable <TSource> > query, Expression <Action <TSource> > action)
 {
     return(new QueryExprVoid(QExpr.NewForEach(action, query.Expr)));
 }