[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));
}
当我在 VS 2010 调试器中运行它时,它会抛出错误There was an error reflecting type 'FOL.appData'.
,是的,我的代码确实有更多,但这是基本部分。这些都在同一个程序集中。