I have a:
var selectedDates = new Dictionary<string, string>(); selectedDates.Add("2014-06-21", DateTime.Now.ToLongDateString()); selectedDates.Add("2014-07-21", DateTime.Now.AddDays(5).ToLongDateString()); selectedDates.Add("2014-08-21", DateTime.Now.AddDays(9).ToLongDateString()); selectedDates.Add("2014-09-21", DateTime.Now.AddDays(14).ToLongDateString()); How can I loop trough items without knowing the key?
For example I want to get the value of the item[0]
If I do:
var item = selectedDates[0].value; // I get an error