KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is this: Button.Click -= new EventHandler(Button_Click); the same as this: Button.Click -= Button_Click; I ask because to me it seems that the former is removing a new reference to a method, and the latter one is removing a method itself. But then again, maybe the new EventHandler part is implicit in the += or -= overload in case the programmer doesn't explicitly assign it like that? In case it is different how about Button.Click -= new EventHandler(Button_Click); VS Button.Click -= Button_Click; Thanks.
Tags (comma-separated)
Save Edits
Cancel