I have the following code. It uses a class someone built to manage a specific file type called a plist. I am trying to take what it spits out to me and put it in a Dictionary.
Dictionary<string, IPropertyListDictionary> maindict = new Dictionary<string, IPropertyListDictionary>();
maindict = data["section0"].DictionaryItems;
The problem is that I get a red line under "DictionaryItems" with the following error:
Cannot implicitly convert type
'System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,CodeTitans.Core.Generics.IPropertyListItem>>'
to
'System.Collections.Generic.Dictionary<string,CodeTitans.Core.Generics.IPropertyListDictionary>'.
An explicit conversion exists (are you missing a cast?)
Can anyone help me correctly cast this? Thanks.