How to Comare two key's of hash table
-
hi all, I got one reuirement that i need to compare two key's of hash table how can it possible,please try to help me out, Thanks In Advance Chadragupta
-
hi all, I got one reuirement that i need to compare two key's of hash table how can it possible,please try to help me out, Thanks In Advance Chadragupta
plz described in brief
Piyush Vardhan Singh Programmer TAS NewDelhi India
-
hi all, I got one reuirement that i need to compare two key's of hash table how can it possible,please try to help me out, Thanks In Advance Chadragupta
The keys of a HashTable are stored as object, so you need to cast the keys to the actual type that you are using for key, before you can make a useful comparison between them. If you are using framework 2, you should be using a Dictionary instead of a HashTable. Then the keys are not stored as object, so you don't have to cast them to use them.
--- single minded; short sighted; long gone;
-
The keys of a HashTable are stored as object, so you need to cast the keys to the actual type that you are using for key, before you can make a useful comparison between them. If you are using framework 2, you should be using a Dictionary instead of a HashTable. Then the keys are not stored as object, so you don't have to cast them to use them.
--- single minded; short sighted; long gone;
Thanks Guffa i got it