Hashtable with foreach

You have to use: DictionaryEntry

[sourcecode lang="c#"]Hashtable ht = new Hashtable();
ht[„[„one"];
ht[„tw[„two"]br> ht[„thre[„three"]>

foreach(DictionaryEntry data in ht)
{
Debug.WriteLine( data.Key + “ => “ data.Value );
}[/sourceco[/sourcecode]

One thought on “Hashtable with foreach”

Comments are closed.