Hi I currently have a Collection container and I need to dump its contents into an ArrayList or a List. This ArrayList holds a dictionary object.
Now if I have something like this I tried doing ToList but it doesnt work
Collection<object> content = new Collection<object>();
....populate content container.....
List <Dictionary<string, string>> lst = new List <Dictionary<string, string>>();
lst= ( List< Dictionary<string, string> > ) content.ToList();
Any suggestions on how I could do this ?
Edit:
My content collection should be a list which contains a map.