Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using C# 5 async feature in Linqpad

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?

like image 561
user198552 Avatar asked May 05 '11 07:05

user198552


People also ask

What is C in used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

How do I use C on my computer?

It is a bit more cryptic in its style than some other languages, but you get beyond that fairly quickly. C is what is called a compiled language. This means that once you write your C program, you must run it through a C compiler to turn your program into an executable that the computer can run (execute).

Why do people use C?

The biggest advantage of using C is that it forms the basis for all other programming languages. The mid-level language provides the building blocks of Python, Java, and C++. It's a fundamental programming language that will make it easier for you to learn all other programming languages.

Is C still useful?

The C programming language has been alive and kicking since 1972, and it still reigns as one of the fundamental building blocks of our software-studded world.


1 Answers

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.

like image 84
Joe Albahari Avatar answered Sep 18 '22 09:09

Joe Albahari