Chapter 6. Managing errors and exceptions
After completing this chapter, you will be able to:
You have now seen the core C# statements that you need to know to perform common tasks such as writing methods; declaring variables; using operators to create values; writing if and switch statements to run code selectively; and writing while, for, and do statements to run code repeatedly. However, the previous chapters haven’t considered the possibility (or probability) that things can go wrong.
It is very difficult to ensure that a piece of code always works as expected. Failures can occur for a large number of reasons, many of which ...
Get Microsoft Visual C# 2013 Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.