Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to release object stored in property?
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01397173
Message ID:
01397408
Vues:
41
>I think you want a comma between BasePage and IDisposable, not a colon.
>

Good point, I think you're right.

>>I also unfortunately don't have that book, so my recollections a bit vague.
>>
>>I think your declaration should be
>>
>>public class MyPage : BasePage,iDisposable
>>
>>same for your inner classes.
>>
>>Then you also can create explicit destructor for each of this class and call dispose of the inner objects there.
>>
>>The mentioned book had this whole concept coded using some special property to know how the descructor was called.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform