[Serializable]
public class appData
{
public string DataFile { get; set; }
public string LogFile { get; set; }
public string UploadURL { get; set; }
public string RssURL { get; set; }
public ICollection<Rss.Items> RssFeed = new Collection<Rss.Items>();
}
public class Rss
{
[Serializable]
public struct Items
{
public string GUID;
public DateTime Date;
public string Title;
public string Description;
public string Link;
}
}
internal static appData appData;
private static XmlSerializer xml;
static void Main()
{
xml = new XmlSerializer(typeof(appData));
}
when I run this in the VS 2010 debugger it throws the error There was an error reflecting type 'FOL.appData'. yes, my code does have more, but this is the basic parts. These are all within the same assembly.
Interfaces can’t be serialized – you’ll need to change this:
to this: