Working of dictionary is same as hashtable.
Dictionary<int,string> dict_names = new Dictionary<int,string>();
dict_names.Add("name","rajesh");
dict_names.Add("surname","sathua");
int value1 = dict_names["name"]; //output will be rajesh
int value2 = dict_names["surname"]; //output will be sathua