Saturday, 15 January 2011

Why does this dictionary display differently in debug between VB.NET and C#? -



Why does this dictionary display differently in debug between VB.NET and C#? -

i've been working in c# , vb.net lot lately, , other night noticed unusual behavior when running through debugger , trying @ contents of dictionary object. i'm i've looked through dictionary in c# before , saw contents, i'm seeing is:

poking around in sub parts, keys , values, doesn't show what's in dictionary, take me around in loop same debugger window. can't @ values anywhere here.

where vb.net looks fine:

any thought why c# different? there setting or have off?

somehow you're beingness shown "raw view -> non-public members" window. however, list of numerically-indexed values should accessible if scroll downwards in window next-to-last row, "values". can post screenshot showing expanded "keys" window?

uncheck tools -> options -> debugging -> general, 4th alternative last: "show raw construction of objects in variable windows". (thanks should go http://stackoverflow.com/a/13422426/2236012 sharing settings path.)

c# vb.net visual-studio-2010 visual-studio-debugging

No comments:

Post a Comment