Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#events and observer patternSingle-choice MCQ

Given the event subscription below, what happens when the lambda is invoked and you later try to unsubscribe with the same-looking lambda?

public event EventHandler Tick; void Wire(Source src) { src.Tick += (s, e) => Console.WriteLine("hi"); } void Unwire(Source src) { src.Tick -= (s, e) => Console.WriteLine("hi"); }