G
Guest
I have created a sample project where i have referenced an object only with
an event :
textBox.VisibleChanged += new EventHandler(this.textBox_VisibleChanged);
When i call GC.Collect(), the object is disposed and garbage collected ! I
thought that event references are strong references and not weak references.
Does the .NET 2.0 garbage collector manage differently the events references ?
an event :
textBox.VisibleChanged += new EventHandler(this.textBox_VisibleChanged);
When i call GC.Collect(), the object is disposed and garbage collected ! I
thought that event references are strong references and not weak references.
Does the .NET 2.0 garbage collector manage differently the events references ?