/// <summary> /// A parallel query that returns a List from an sequence of values. /// </summary> /// <typeparam name="TSource">The type of the elements of source.</typeparam> /// <param name="query">The query to create a List from.</param> /// <returns>A parallel query that contains elements from the input sequence in a List form.</returns> public static IParallelQueryExpr <List <TSource> > ToList <TSource>(this IParallelQueryExpr <IEnumerable <TSource> > query) { return(new ParallelQueryExpr <List <TSource> >(QExpr.NewToList(query.Expr))); }