Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to release object stored in property?
Message
 
 
À
30/04/2009 13:20:40
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:
01397257
Vues:
34
>The reason I ask - isn't the purpose of this construct to make sure the call to idisposable is accomplished when you want it to be?
>

Yes, but I don't think it would serve John's purpose in this case. He needs to access this class in various methods of his bigger class thus he created it as a property.
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