KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My understanding is that any event handlers wired up in C# need to be unwired as such. Object myObject = new Object(); myObject.Event += EventHandler; //Wired myObject.Event -= EventHandler; //Unwired But do you need to unwire the following code? and if so, how? Object myObject = new Object(); myObject.Event += (object sender, EventArgs e) => { }; //Wired myObject.Event -= ????? //Unwire? How? My assumption is no?
Tags (comma-separated)
Save Edits
Cancel