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
  • 112,162
  • 17
  • 191
  • 293
Daniel San
  • 1,761
  • 3
  • 17
  • 35

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
  • 138,123
  • 20
  • 222
  • 279