我可以使用任务并行库在.NET 3.5的项目?可以使用、任务、项目、NET

2023-09-02 21:08:08 作者:会哭的人不一定流泪

我听说任务并行库可以在.NET 3.5的项目中使用。这是正确的,如果是,我该如何使用呢?在.NET 4.0中,它位于的System.Threading,但是当我选择的.Net 3.5在Visual Studio 2010中的目标,我没有得到访问类,如并行和并行循环。

I heard that the Task Parallel Library can be used in a .Net 3.5 project. Is this correct, and if yes, how do I use it? In .Net 4.0, it resides in System.Threading, but when I select .Net 3.5 as the target in Visual Studio 2010, I don't get access to classes like Parallel and the Parallel loops.

推荐答案

您无法使用的完全的并行扩展,不...

You can't use the full Parallel Extensions, no...

...但如果​​你安装无扩展了解.NET 3.5,即的