debugging - How does the VIsual Studio watch window gets the value for a variable? -
lets have variable x of type abc instantiated. when see value of x shows me value x.tostring() method.
where else value displayed in value column come from?
any appreciated,
thanks,
dattebayo
the text see under value column in watch window come 1 of 3 sources.
- the object's tostring() method, you've mentioned
- a debuggerdisplayattribute on type abc, tells debugger how present user.
- if "abc" class decorated debuggertypeproxy attribute, see either .tostring or debuggerdisplay string proxy type has.
to best of knowledge, 3 options.
Comments
Post a Comment