P
P
ProblemBook.NET
Search…
⌃K
P
P
ProblemBook.NET
Search…
⌃K
ProblemBook.NET
LANGS
Задачник.NET
Math
Oop
ValueTypes
Strings
Linq
«QueryAfterRemove» (Решение)
«ClosureAndVariable» (Решение)
«QueryAfterRemove» (Задача)
«ClosureAndVariable» (Задача)
«EnumerableToArray» (Решение)
«QueryWithInc» (Решение)
«EnumerableToArray» (Задача)
«QueryWithInc» (Задача)
«LifeAfterYield» (Решение)
“YieldExceptionYield” (Решение)
«LifeAfterYield» (Задача)
«ExceptionYieldYield» (Решение)
«ClosureAndForeach» (Решение)
«TryYieldFinally» (Задача)
«ClosureAndFor» (Решение)
«ExceptionYieldYield» (Задача)
«YieldExceptionYield» (Решение)
«ClosureAndForeach» (Задача)
«ClosureAndFor» (Задача)
«YieldExceptionYield» (Задача)
Multithreading
Summary
Введение
ProblemBook.NET
Attribution-NonCommercial-NoDerivatives 4.0 International
Powered By GitBook

«ClosureAndVariable» (Задача)

Что выведет следующий код?
var list = new List<string> { "Foo", "Bar", "Baz" };
var startLetter = "F";
var query = list.Where(c => c.StartsWith(startLetter));
startLetter = "B";
query = query.Where(c => c.StartsWith(startLetter));
Console.WriteLine(query.Count());
​Решение​
Previous
«QueryAfterRemove» (Задача)
Next
«EnumerableToArray» (Решение)
Last modified 3yr ago
Copy link