For the complete documentation index, see llms.txt. This page is also available as Markdown.

«QueryAfterRemove» (Задача)

Что выведет следующий код?

var list = new List<string> { "Foo", "Bar", "Baz" };
var query = list.Where(c => c.StartsWith("B"));
list.Remove("Bar");
Console.WriteLine(query.Count());

Решение

Last updated