Using C# 5 async feature in Linqpad

大憨熊 提交于 2020-01-01 08:40:48

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/5893882/using-c-sharp-5-async-feature-in-linqpad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!