开发者

Is there a way to use .Net 4.0 System.Threading.Tasks class in .Net 3.5 or .Net3.0 versions?

开发者 https://www.devze.com 2022-12-29 04:56 出处:网络
I get to understand the .Net 4.0 provides a better approach on multi-threading with tasks. 开发者_C百科Is there a way that it is possible to do the same approach in .Net 3.5 or .Net 3.0.

I get to understand the .Net 4.0 provides a better approach on multi-threading with tasks. 开发者_C百科Is there a way that it is possible to do the same approach in .Net 3.5 or .Net 3.0.

Thanks, Priya.R


I believe the Reactive Extensions for .NET (Rx) include some of the .NET 4.0 concurrency bits.

So that might be worth a look: http://msdn.microsoft.com/en-us/devlabs/ee794896.aspx

Check out the System.Threading.dll


No, if you want to use System.Threading.Tasks, you will have to upgrade to .NET 4.0


If you are targeting .NET 3.5, then downloded rx for 3.5 here after installation add System.Threading.dll in References.

now you can use directive using System.Threading.Tasks;

i hope this may help you...

0

精彩评论

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

关注公众号