Creating a new query using LINQPad

suggest change

LINQPad is a tool for learning and testing .NET languages (C#, F#, and VB.NET).

  1. Install LINQPad

  2. Create a new Query (Ctrl + N)

  3. Under language, select “C# statements”

  4. Type the following code and hit run (F5)

string hw = "Hello World";

hw.Dump(); //or Console.WriteLine(hw);

  1. You should see “Hello World” printed out in the results screen.

  2. Now that you have created your first .NET program, open the samples included in LINQPad through the “Samples” browser. They show many features of the .NET languages.

Notes:

  1. If you click “IL”, you can inspect the IL that your .NET code generates.

  2. When using LINQ to SQL or LINQ to Entities, you can inspect the SQL that is generated.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents