I have a class that implements UserControl. In .NET 2005, the Dispose method is automatically created in a partial class of the MyClass.Designer.cs class, which looks like this:
protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }
If I want to add my own Dispose functionality, where would I put it? Since this file is generated, I do not want to add code here and risk blowing it off.
c # dispose user-controls
e-holder 03 Oct '08 at 16:04 2008-10-03 16:04
source share