473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Hashtable, enum as a key

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
Nov 16 '05 #1
3 2595

"Mikolas" <Mi*****@discussions.microsoft.com> wrote in message
news:28**********************************@microsof t.com...
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?
Nov 16 '05 #2
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

"Daniel O'Connell [C# MVP]" wrote:

"Mikolas" <Mi*****@discussions.microsoft.com> wrote in message
news:28**********************************@microsof t.com...
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?

Nov 16 '05 #3

"Mikolas" <Mi*****@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
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.
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Calvin Lai | last post by:
Hi all, I have the following code which should work. However, an exception ( InvalidOperationException) was thrown which doesn't make sense to me. line 1: foreach (string name in...
5
by: francois | last post by:
First of all I would to to apologize for resending this post again but I feel like my last post as been spoiled Here I go for my problem: Hi, I have a webservice that I am using and I would...
5
by: Dick | last post by:
Hello, I'm trying to serialize a class with a Hashtable within: ' Class code: Imports System.Collections Class clsOptions Public countID As Integer Public persons As New Hashtable End Class
8
by: Ryan Liu | last post by:
Is that a good idea to add a Hashtable to System.Windows.Forms.Application class? And we can put any user global data in it. I have some class library used by a few other applications in slight...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.