The following code is from Josh Smith's MVVM example:
public event EventHandler RequestClose;
void OnRequestClose()
{
EventHandler handler = this.RequestClose;
if (handler != null)
handler(this, EventArgs.Empty);
}
Commented lines are my complement. My question is that commented out lines will do the same as without digging? So why create another EventHandler link? Or am I missing something? Thanks
source
share