From the course: .NET Essentials: Working with LINQ
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Explore the statements editor - .NET Tutorial
From the course: .NET Essentials: Working with LINQ
Explore the statements editor
- [Instructor] There are many times when you need more than one line of code That's why we have these other options we have c-sharp statements and c-sharp program Let's look at time number 2 Now I can write multiple lines of code I have to follow the rules or some of the rules in c-sharp I have to put a semi colon on the end of each line of code Typically when you write code in a regular application you have to put that code either in a main method or one of the other methods inside the application. That's not the case if you pick c-sharp statements LINQpad assumes that all the code in this editor is in a single method, that it will run. Let's take a look at an example Open up 5A Now I've written multiple lines of code here each one of them ends with a semi colon. Now if I run this nothing happens in the results window, because I haven't written any code output any of the results to the window Otherwise again…
Contents
-
-
-
-
Why use LINQPad?1m 32s
-
(Locked)
Initial tour of LINQPad3m 52s
-
(Locked)
Set destination folder for course examples1m 54s
-
(Locked)
Explore the expression editor3m 9s
-
(Locked)
Explore the statements editor2m 32s
-
(Locked)
Show formatted output with the Dump method2m 59s
-
(Locked)
Explore the program editor1m 34s
-
(Locked)
Run a subset of code1m 55s
-
-
-
-
-
-
-
-
-
-
-
-
-
-