Hashtable, enum as a key

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When I use, enum as key with Hashtable the HT doesn't work properly. It
works fine when I explicitly change the type to the undelying one. But it
frustrates me, since I haven't seen anything about that in any doc and is it
olny enum?

thanks,
mikolas
 
Mikolas said:
When I use, enum as key with Hashtable the HT doesn't work properly. It
works fine when I explicitly change the type to the undelying one. But it
frustrates me, since I haven't seen anything about that in any doc and is
it
olny enum?

What is going wrong?
 
Ok, I probably had some bugs of my own. But still, when you have enum as a
key and then do Quick Watch on the hash table you can't see what's in
it(that's why I thougth that the problem is enum). Why is that? Is it just a
debugging tool problem or Hashtable problem?

thanks,
mikolas
 
Mikolas said:
Ok, I probably had some bugs of my own. But still, when you have enum as a
key and then do Quick Watch on the hash table you can't see what's in
it(that's why I thougth that the problem is enum). Why is that? Is it
just a
debugging tool problem or Hashtable problem?

Probably a debugging problem. The debugger is a bit odd with Hashtable.

I believe VS 2k5 has fixed alot of these issues.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top