Object.Dispose()

Superfly1611

Regular
Joined
Feb 17, 2004
Messages
66
Location
UK
The following method is automatically generated by visual studio every time you create a new windows form.....
Code:
	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
 
Back
Top