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.

  1. the object's tostring() method, you've mentioned
  2. a debuggerdisplayattribute on type abc, tells debugger how present user.
  3. if "abc" class decorated debuggertypeproxy attribute, see either .tostring or debuggerdisplay string proxy type has.

to best of knowledge, 3 options.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -