I am trying to create a List of Dictionary items. I am not sure how to add items in list and how to get back the values while traversing the list.
Dictionary
// Try KeyValuePair Please.. Worked for me private List> return_list_of_dictionary() { List> _list = new List>(); Dictionary _dictonary = new Dictionary() { {"Key1",1}, {"Key2",2}, {"Key3",3}, }; foreach (KeyValuePair i in _dictonary) { _list.Add(i); } return _list; }