using System.Collections;
using System.Collections.Generic;
public static void Main()
var input = new Dictionary<string, string> {{"txt", "notepad.exe"}, {"bmp", "paint.exe"}, {"dib", "paint.exe"}, {"rtf", "wordpad.exe"}};
Hashtable result = input.ToHashtable();
foreach (DictionaryEntry item in result)
Console.WriteLine("[{0}, {1}]", item.Key, item.Value);