Question

Probably I could make an application domain and hook to DomainUnload event, but I'd like to do that on primary app domain.

Was it helpful?

Solution

There is no analogue in .net :(

You've got the right idea, you'll need to explicitly delete it.

// Delete the previously created file.
File.Delete(filepath);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top