How events are assigned in .NET
- by Matt
I just realized I didn't fully understand why in .NET you assign events using a += symbol.
I figured this out yesterday when I needed to remove an event and without thinking I was doing
someobject.onsomeevent += null
thinking that would just remove the event I had previously assigned.
After some investigation, I figured out I had to
…