Do I need to unsubscribe events in my Form?
问题 I'm trying to understand how a Control events are unsubscribed. Suppose I have a textbox and I have subscribed the TextChanged event using the WinForms designer. Is the TextChanged event automatically unsubscribed in the Textbox destructor, or must I explicitly unsunscribe to avoid memory leaks? public void InitializeComponents() { ... this.emailTextBox.TextChanged += emailTextBox_TextChanged; ... } public override void Dispose() { if( disposing ) { // DO I REALLY NEED THIS LINE? this