From the course: LINQPad Essential Training

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Run a selected area of code

Run a selected area of code - LINQ Tutorial

From the course: LINQPad Essential Training

Run a selected area of code

- [Instructor] You don't have to run all the code in the query window when you click on the run button. Instead you can do is you can select some of the code and run a subset of the code. So let's select line five, and then click the run button. You see that code ran successfully, down here at the bottom. It says it completed successfully. Notice what else happens is the rest of the code turns gray to tell you that this is the only line of code that ran. Now as soon as I click anywhere inside the code editor, then it all goes back from being gray to the normal colors. Let's try that again. Let's try to run line six. Run it. See, everything turns gray. This time I'm getting an error marker, and I'm also getting a message up here saying it cannot execute the text selection. "The name 'X' does not exist." So what's happening is I'm attempting to run line six, but line six has a variable X that was declared on line…

Contents