■
Source Code
The FunWithLinqExpressions project can be found under the Chapter 14 subdirectory.
LINQ Queries: An Island unto Themselves?
You may have noticed that each of the LINQ queries seen over the course of this chapter were all
defined within the scope of a local method. Moreover, to simplify our programming, the variable
used to hold the result set was stored in an implicitly typed local variable (in fact, in the case of pro-
jections, this is mandatory). Recall from Chapter 13 that implicitly typed local variables cannot be
used to define parameters, return values, or fields of a class type.
C H A P T E R 1 4
Do'stlaringiz bilan baham: |