Dictonry til listbox
HejJeg har lavet en dictonary med (DateTime, list),
Dictionary<DateTime, List<string>> temp_flasker_Dictonary = new Dictionary<DateTime, List<string>>();
List<string> temp_flasker_Liste = new List<string>();
temp_flasker_Liste.Add(checkedListBox5.CheckedItems.ToString ());
temp_flasker_Dictonary.Add(dt, temp_flasker_Liste);
men får problemer når jeg skal udskrive dem
listBox3.Items.AddRange(temp_flasker_Dictonary.ToArray())
Får disse fejl:
Error 3 The best overloaded method match for 'System.Windows.Forms.ListBox.ObjectCollection.AddRange(System.Windows.Forms.ListBox.ObjectCollection)' has some invalid arguments
Error 4 Argument '1': cannot convert from 'System.Collections.Generic.KeyValuePair<System.DateTime,System.Collections.Generic.List<string>>[]' to 'System.Windows.Forms.ListBox.ObjectCollection'
