StackOverflow 文件 C# Language 教程 並行 LINQ(PLINQ) WithDegreeOfParallelism WithDegreeOfParallelism Created: November-22, 2018 並行度是將用於處理查詢的併發執行任務的最大數量。 var sequence = Enumerable.Range(1, 10000); var evenNumbers = sequence.AsParallel() .WithDegreeOfParallelism(4) .Where(x => x % 2 == 0); AsOrdered簡單的例子