Tag Archives: catcnh block

Use try catch blocks to protect against unexpected errors in C#

Most programs cannot anticipate every possible error. You can watch for things like missing files, but it’s hard to stop a determined user from entering “ten” in a TextBox that should contain a number. (Actually you can prevent that by … Continue reading

Posted in debugging, syntax | Tagged , , , , , , , , , , , , , , | 1 Comment