Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing MM more questions
Message
De
23/06/2004 15:31:19
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00916588
Message ID:
00916589
Vues:
9
Shawn,

Don't bother with the Dispose method unless you need to add specific code to your own sub-classed version (which you most likely won't need to do).

~~Bonnie

>Hi All,
>
>During my fun at subclassing all the MM objects(boy there are alot of them....)
>Everytime i create a new component class it adds a Dispose method to it, do i need this method or can i remove it?
>
>
>protected override void Dispose( bool disposing )
>{
>	if( disposing )
>	{
>		if(components != null)
>		{
>			components.Dispose();
>		}
>	}
>	base.Dispose( disposing );
>}
>
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform