T
Tony Johansson
Hello!
Assume I have this Linq query.
var items =
from s in greetings
where s.EndsWith("LINQ")
select s;
foreach(var item in items)
Console.WriteLine(item);
Now to my question I read in a Linq book called Pro LINQ.
The bool is saying LINQ queries are often deferred and not actually executed
when it appears you are calling
them. In my example above if I put a breakpoint on this row "foreach(var
item in items)"
and examine the items varable will this then contain any data.
I don't really understand when this variable items will be filled with data
?
//Tony
Assume I have this Linq query.
var items =
from s in greetings
where s.EndsWith("LINQ")
select s;
foreach(var item in items)
Console.WriteLine(item);
Now to my question I read in a Linq book called Pro LINQ.
The bool is saying LINQ queries are often deferred and not actually executed
when it appears you are calling
them. In my example above if I put a breakpoint on this row "foreach(var
item in items)"
and examine the items varable will this then contain any data.
I don't really understand when this variable items will be filled with data
?
//Tony