nerdexam
Microsoft

70-519 · Question #71

70-519 Question #71: Real Exam Question with Answer & Explanation

Sign in or unlock 70-519 to reveal the answer and full explanation for question #71. The question stem and answer options stay visible for context.

Question

An ASP.NET Web application contains a class named Money. The Money class has properties named Value and Currency. The Locals window of the Microsoft Visual Studio 2010 IDE currently displays the Value and Currency properties only when the Money object is expanded. You have the following requirements: - Display the Value and Currency property values in the Locals window. - Display the property values without requiring the developer to expand the Money object. You need to recommend an approach for modifying the Money class to meet the requirements. What should you do?

Options

  • AApply the DebuggerDisplay attribute to the class.
  • BIn the constructor, create a new instance of the LocalsItemDescription class for each of the
  • CIn the Value and Currency property setters, call the Debug.WriteLine() method.
  • DModify the class to inherit from the LocalVariableInfo class.

Unlock 70-519 to see the answer

You've previewed enough free 70-519 questions. Unlock 70-519 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-519 Practice