Hashtable myHashTable = new Hashtable(); myHashTable.Add("1", "dotnet"); myHashTable.Add("2", "tutorials"); myHashTable.Add("3", "w3mentor"); myHashTable.Add("11", "dotnet"); myHashTable.Add("23", "tutorials"); myHashTable.Add("33", "w3mentor"); foreach (DictionaryEntry dictionaryEntry in myHashTable ) { Console.WriteLine("{0}{1}",dictionaryEntry.Key,dictionaryEntry.Value);
23tutorials 33w3mentor 11dotnet 1dotnet 2tutorials 3w3mentor
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)