10

Is it possible to use C# 5 async features in Linqpad snippets? Does anyone know of any hack/beta which allows you to do it?

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
user198552
  • 431
  • 4
  • 15

1 Answers1

12

Installing the async CTP should be enough - async code should compile in LINQPad (although the Intellisense will show red squigglies). I'll look at dealing to the red squigglies in the next beta :)

You will have to add a reference to asyncctplibrary.dll, as in VS.

Update: the red squigglies and autocompletion has been dealt to in the latest beta.

Community
  • 1
  • 1
Joe Albahari
  • 30,118
  • 7
  • 80
  • 91