0

I met Tasks using .NET Framework 4.5 (with async and await) and I need to know if they are part of the standard .NET Framework 4.

leppie
  • 115,091
  • 17
  • 196
  • 297
Daniel San
  • 1,937
  • 3
  • 19
  • 36

1 Answers1

2

Task and related classes are available in .Net 4. Async and await are part of C# 5, and these rely on methods (e.g. GetAwaiter) which are not defined on Task until .Net 4.5. You can use async/await when targeting .Net 4 if you use the Async targeting pack along with a C# 5 compiler.

Lee
  • 142,018
  • 20
  • 234
  • 287