dcsimg
How to search the 'key(s)' having a particular 'value' in the Hashtable.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   gaurav_seth
Posted On:   Thursday, August 8, 2002 09:16 AM


I have a Hashtable with the key-value pairs, how is it possible to retrieve the 'key(s)' having the particular 'value'.

Re: How to search the 'key(s)' having a particular 'value' in the Hashtable.

Posted By:   R_C  
Posted On:   Thursday, August 8, 2002 10:25 AM

rather than processing to find them, better off storing it 'both way' at the outset.

Re: How to search the 'key(s)' having a particular 'value' in the Hashtable.

Posted By:   Anonymous  
Posted On:   Thursday, August 8, 2002 10:05 AM

You have to got through all the values and keys using the keys and elements methods, which return enumerations of keys and values...
About | Sitemap | Contact