Spot the bug in dashboard subscription

from Event subscription and lifetime
C# 14 / .NET 10 intermediate 4 min 1 issue to find

Find why this dashboard keeps receiving updates after Disconnect runs.

csharp
public sealed class Dashboard
{
    private readonly PriceFeed _feed;

    public Dashboard(PriceFeed feed)
    {
        _feed = feed;
        _feed.Changed += (_, price) => Show(price);
    }

    public void Disconnect()
    {
        _feed.Changed -= (_, price) => Show(price);
    }

    private void Show(decimal price) { }
}
Open in playground
Report an error