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.
精彩评论