KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a class that makes use of temporary files ( Path.GetTempFileName() ) while it is active. I want to make sure these files do not remain on the user's hard drive taking up space after my program is closed. Right now my class has a Close() method which checks if any temporary files used by the class still exist and deletes them. Would it make more sense to put this code in the Dispose() or Finalize() methods instead?
Tags (comma-separated)
Save Edits
Cancel