Skip to content
Stephen Cleary edited this page Feb 23, 2024 · 1 revision

Local Functions as Event Handlers

Local functions can be converted to delegates, but they can act as lambda expressions when they do so. This does not work well for event handlers because they do not compare as equivalent when they are treated as lambda expressions.

Clone this wiki locally