# “QueryAfterRemove” (Problem)

What will the following code display?

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

[Solution](https://andreyakinshin.gitbook.io/problembookdotnet/en/linq/queryafterremove-s)
