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?
A.
In the constructor, create a new instance of the LocalsItemDescription class for each of
the Value and Currency properties.
B.
Modify the class to inherit from the LocalVariablelnfo class. Override the IsPinned
property to return True.
C.
In the Value and Currency property setters, call the Debug.WriteLine() method.
D.
Apply the DebuggerDisplay attribute to the class.