How to run code before program exit?
Posted
by carter-boater
on Stack Overflow
See other posts from Stack Overflow
or by carter-boater
Published on 2010-03-31T18:05:06Z
Indexed on
2010/03/31
18:23 UTC
Read the original article
Hit count: 555
Hi all,
I have a little console C# program like
Class Program
{
static void main(string args[])
{
}
}
Now I want to do something after main() exit. I tried to write a deconstructor for Class Program, but it never get hit.
Does anybody know how to do it.
Thanks a lot
© Stack Overflow or respective owner