How can I get all keys in System.Collections.Specialized.HybridDictionary without using foreach?
I have a method
void Get(IDictionary options)
{
...
}
And while debugging I can set up a breakpoints inside a body of this method. I want to see all keys of options in the watch window in Visual Studio 2010.
There’s a property
Keys, are you looking for that?MSDN
If you instead want to access it like a
List(what is not necessarily a good idea as you can see from the remark section of msdn quoted above):(which uses a loop implicitely anyway)
Edit:
Then execute this in the quick-watch-window: