Answers

This section contains the solutions to the thought experiments and answers to the lesson review questions in this chapter.

Objective 4.1: Thought experiment

  1. Several tools can help you maintain the integrity of your data. The first is parameter checking, in which you throw an ArgumentException. Another is the use of code contracts to perform a check on the values going into and coming out of the application.

  2. Several tools can give you an idea of what is happening with your data. You can’t depend solely on errors for the information you need because the data might be wrong without throwing errors. You can add helpful information to logging messages, as well as details on the parameters coming into a method and the return values out of the method. ...

Get Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications 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.