score:2

Accepted answer

you are right in that amethod will use linq to objects (no parallelism). you indeed need two specialized functions because l2o and plinq use different static query methods (enumerable vs. parallelenumerable). (or you make use of reflection which i think is too much here.)

you can make this work by calling the adapter method asparallel in amethod. asparallel checks to see whether the argument is a parallel query and if yes it directly makes use of it.


Related Query

More Query from same tag