using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
public static void Main()
Stopwatch sw= new Stopwatch();
Hashtable ht=new Hashtable();
foreach(DictionaryEntry _dict in ht)
Console.WriteLine(_dict.Value);
Console.WriteLine("\n"+" hash elapsed : " + sw.ElapsedTicks);
Dictionary<string, string> My_dict =
new Dictionary<string, string>();
My_dict.Add("a.01", "C");
My_dict.Add("a.02", "C++");
My_dict.Add("a.03", "C#");
foreach(KeyValuePair<string, string> element in My_dict)
Console.WriteLine("Key:- {0} and Value:- {1}",
element.Key, element.Value);