We saw that you can get the result of a LINQ statement
from the Select section. In reality, the Select statement
simply indicates that the result is ready and it hands it to the other parts
of the program. Instead of getting the result directly from the Select
statement, you can first store it in a local LINQ variable. This allows you
to treat the result as a variable that you can then manipulate before
getting the final result.

To create a local variable in the LINQ statement, you
can use the Let operator. You must use it before the Select
statement to hold the result. Here is an example: