I was debugging in Visual Studio 2010, which we just installed and trying to look at a dictionary in the quick watch window. I see Keys and Values, but drilling into those s
There is a workaround to dump the contents of the dictionary in the debugger.
To your project, add a reference to the linq dll (e.g. System.Core)
Add the following statement to your source file:
using System.Linq;
In the watch window, type:
test.Take(1)
Then expand the "Results View" group row. This should give you the familiar list of key, value pairs.
[This workaround was reported by rickpastoor on connect.microsoft.com for Bug 557741]
The debugger visualizer for Dictionary is the exact same class with the exact same behavior. It is still the private Mscorlib_DictionaryDebugView class. Unexpanded it shows Count, expanded it shows an array of the elements.
Your code snippet suggests that you are using a completely different Dictionary class, one that is not generic.