Superfly1611 Posted June 10, 2005 Posted June 10, 2005 The following method is automatically generated by visual studio every time you create a new windows form..... if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); Is this generic code? In other words when i'm creating my own class can i use this code to dispose of all objects that this class uses? (variables, DataConnections etc) Thanks Quote
IngisKahn Posted June 10, 2005 Posted June 10, 2005 Yes if your class uses unmanaged data or disposable objects. Look up IDisposable in MSDN. Quote "Who is John Galt?"
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.