0

Possible Duplicate:
C#: Difference between ' += anEvent' and ' += new EventHandler(anEvent)'

What is difference between these two lines?

button1.OnClick += SomeClickMethod;

button1.OnClick += new EventHandler(SomeElickMethod);

Is there any difference between these two and if there is what are differences, which one is better?

Community
  • 1
  • 1
Vajda
  • 1,795
  • 6
  • 39
  • 49

1 Answers1

1

There is no difference between the two.

Szymon Rozga
  • 17,971
  • 7
  • 53
  • 66