3 ms·
If I'm not mistaken, that has the same semantics as the standard one line event definition, i.e.: public event EventHandler MyEvent; // Inside the clas
by frou_dh 15y ago
If I'm not mistaken, that has the same semantics as the standard one line event definition, i.e.:
public event EventHandler MyEvent;
// Inside the class, MyEvent is bound to a multicast delegate.
// Outside the class, MyEvent is bound to an auto-generated add/remove mechanism.
// So MyEvent can only be set to null or invoked from inside the class.
- noblethrasher 15y agoHmmm, you're right. That's two (C# related) things I learned today.