Loop through Hash Table-Issue

Aug 1 2005 2:05 PM

How to loop through the Hash Table.I get the collection of keys in hashtable and loop through that as shown below,but its not working.Its not loop through correctly.


foreach(object key in Hashtable.keys)
{
MessageBox("Hash table key is="+ (string)  key)
}


I used Data structure concept in my programming.I store all datas in HashTable.I want to loop through all keys.But its not loop through.Please help me.

Regards.
S.Sevugan:)