Impact of using AsParallel() and AsSequential() in the same query? C#
问题 I was going through PLINQ in one of the books and it said: If you have a complex query that can benefit from parallel processing but also has some parts that should be done sequentially, you can use the AsSequential to stop your query from being processed in parallel. For Example: var parallelResult = numbers.AsParallel().AsOrdered() .Where(i => i % 2 == 0).AsSequential(); I want to understand why is it allowed and what is the impact on the result? Is it running parallel? Is it running