Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to release object stored in property?
Message
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01397173
Message ID:
01397408
Views:
40
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform