我看了一些事件教程,只是不明白什么是简单的代码受益像this..method应该用同样的方式:为什么要在足够的地方使用事件?
class Bulb
{ public delegate void handler();
public event handler Glowing;
...
Glowing+=SomeMethod;
private void TurnOn
{
Glowing();
}
private void SomeMethod
{
}
}