public static void Main(string[] args)
{
StringDictionary obj=new StringDictionary();
obj.Add("host1","Server1");
obj.Add("port","1234");
obj.Add("port","1234");
obj.Add("userid","admin");
foreach(DictionaryEntry de in obj)
{
Console.WriteLine("{0} = {1}",de.Key,de.Value);
}
}
Each element of the StringDictionary class is a key/value pair of the type DictionaryEntry.

The StringDictionary implements a hash table with the key and the value strongly typed to be strings rather than objects.