P
P
ProblemBook.NET
Search…
P
P
ProblemBook.NET
ProblemBook.NET
LANGS
Задачник.NET
ProblemBook.NET
Oop
Strings
Linq
“YieldExceptionYield” (Problem)
“QueryAfterRemove” (Problem)
“ClosureAndVariable” (Problem)
“QueryWithInc” (Solution)
“QueryWithInc” (Problem)
“LifeAfterYield” (Solution)
“LifeAfterYield” (Problem)
“EnumerableToArray” (Solution)
“EnumerableToArray” (Problem)
«YieldExceptionYield» (Solution)
“ExceptionYieldYield” (Solution)
“ClosureAndForeach” (Solution)
“TryYieldFinally” (Problem)
“ClosureAndFor” (Solution)
“ExceptionYieldYield” (Problem)
“YieldExceptionYield” (Solution)
“ClosureAndForeach” (Problem)
“ClosureAndVariable” (Solution)
“QueryAfterRemove” (Solution)
“ClosureAndFor” (Problem)
Multithreading
ValueTypes
Math
Summary
Introduction
Attribution-NonCommercial-NoDerivatives 4.0 International
Powered By
GitBook
“ClosureAndVariable” (Problem)
What will the following code display?
1
var
list
=
new
List
<
string
>
{
"Foo"
,
"Bar"
,
"Baz"
};
2
var
startLetter
=
"F"
;
3
var
query
=
list
.
Where
(
c
=>
c
.
StartsWith
(
startLetter
));
4
startLetter
=
"B"
;
5
query
=
query
.
Where
(
c
=>
c
.
StartsWith
(
startLetter
));
6
Console
.
WriteLine
(
query
.
Count
());
Copied!
Solution
Previous
“QueryAfterRemove” (Problem)
Next
“QueryWithInc” (Solution)
Last modified
3yr ago
Copy link