Take the below code:
private void anEvent(object sender, EventArgs e) {
//some code
}
What is the difference between the following ?
[object].[event] += anEvent;
//and
[object].[event] += new EventHandler(anEvent);
[UPDATE]
Apparently, there is no difference between the two...the former is just syntactic sugar of the latter.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…