>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