Can you put it in the destuctor?
>Hi All,
>
>Ok, I have added a method to my class that I want to be sure is run anytime this class goes away. Since you are not supposed to put a call to a method in Dispose then there isn't a valid reason for me to implement IDisposable. I am reluctant to put a public method for this and expect any using class to NOT forget to call it.
>What is the right way to do this?
>Tim
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer