DictionaryEntry Structure Defines a dictionary key/value 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);
}
}
}
Related examples in the same category