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 expression editor

Explore the expression editor - .NET Tutorial

From the course: .NET Essentials: Working with LINQ

Explore the expression editor

- [Instructor] In this course, I'm writing the code in C#. That means I need to use one of the C# editors in LinqPad. And I have three possible choices. They're listed on the top of this dropdown. Expression, Statements or Program. In this video, we'll look at the first item, Expression. What does that mean? We'll start by opening some code here in 4A Expression. First thing we need to talk about is what is an Expression in C#? An Expression is something that yields a value. And then we use that value in our code or stored in a variable. Now, LinqPad when you choose this expression item. This from this dropdown, it's going to find an expression in the code and it will evaluate that expression. And then it will output the result of that expression into the results window. Now it can only evaluate one expression. Now let's start by talking about literals. Literals and C# are considered to be expressions. So here I've…

Contents