2
Reply

how to store two values for each key in Hashtable

r4rasheed

r4rasheed

Oct 24 2004 10:50 AM
2.3k
Hi Here is my question I have two hash tables Hashtable H1 = new Hashtable(); Hashtable H2 = new Hashtable(); H1.Add("IL", 500); H2.Add("IL","hot"); I m maintaining two hashtables to store tow values for the "IL" key IS IT POSSIBLE TO USE ONE HASHTABLE TO DO THIS JOB fr eg H1.Add("IL",500,"hot"); ? If it , then how I can I extract values for the "IL" key If its not possible, then what is the best solution

Answers (2)