how to convert a HashTable to Dictionary in C#? is it possible? for example if I have collection of objects in HashTable and if I want to convert it to a dictionary of objec
var table = new Hashtable(); table.Add(1, "a"); table.Add(2, "b"); table.Add(3, "c"); var dict = table.Cast().ToDictionary(d => d.Key, d => d.Value);