title: How do I trap Ctrl+C (SIGINT) in a C# console app?
body: <p>I would like to be able to trap <kbd>Ctrl</kbd>+<kbd>C</kbd> in a C# console application so that I can carry out some cleanups before exiting. What is the best way of doing this?</p>