What's the difference between this two:
_btnAddNew.Click += OnAddNewClick;
_btnAddNew.Click += new RoutedEventHandler(OnAddNewClick);
Thank you!!
There is no difference ... the first is a shortcut for the second.
In fact, if you try both ways, then use Reflector to disassemble the assembly, you can see that it's exactly the same and both are interpreted as:
_btnAddNew.Click += new RoutedEventHandler(OnAddNewClick);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With