开发者

enable c# parallel class

开发者 https://www.devze.com 2022-12-13 16:11 出处:网络
i have a visual studio 2008, using c# wanted to get parallel class. addedusing System.Thr开发者_如何转开发eading;

i have a visual studio 2008, using c#

wanted to get parallel class.

added using System.Thr开发者_如何转开发eading;

but no parallel class appears, can you help me to get it? thanks!


There are two issues here.

1) You need to be using .NET 4 with VS 2010, or download the Reactive Extensions for .NET (which includes a backported version of the TPL) in order to use the Parallel class.

2) As of .NET 4, beta 1, the Parallel class is now part of the System.Threading.Tasks namespace, not part of System.Threading. The Rx Framework also includes it here.


This is only available in .NET 4.0.


I think it is only in .Net 4.0.

0

精彩评论

暂无评论...
验证码 换一张
取 消