priya
priya

Reputation: 950

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

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

Thanks, Priya.R

Upvotes: 3

Views: 2243

Answers (3)

Abbas Galiyakotwala
Abbas Galiyakotwala

Reputation: 3019

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...

Upvotes: 0

Jacob Stanley
Jacob Stanley

Reputation: 4824

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

Upvotes: 3

Dean Harding
Dean Harding

Reputation: 72658

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

Upvotes: 0

Related Questions