You need to recommend an approach for modifying the Money class to meet the requirements

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 windows. • 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?

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 windows. • 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?

A.
In the constructor, create a new instance of the LocalsItemDescription class for each of
the Value and Currency properties.

B.
In the Value and Currency property setters, call the Debug.WriteLine() method.

C.
Apply the DebuggerDisplay attribute to the class.

D.
Modify the class to inherit from the LocalVariableInfo class. Override the IsPinned
property to return true.



Leave a Reply 0

Your email address will not be published. Required fields are marked *