Mega Code Archive

 
Categories / C# / Collections Data Structure
 

DictionaryEntry Structure Defines a dictionary keyvalue pair that can be set or retrieved

using System; using System.Collections; class Example {     public static void Main()     {         Hashtable openWith = new Hashtable();         openWith.Add("A", "a");         openWith.Add("B", "b");         openWith.Add("C", "c");         foreach (DictionaryEntry de in openWith)         {             Console.WriteLine("Key = {0}, Value = {1}", de.Key, de.Value);         }     } }