jjzjj

HistoryRoot

全部标签

c# - XML 反序列化 IEnumerable 类时出错

我正在尝试将HistoryRoot类序列化和反序列化为这种XML格式:这是HistoryRoot、HistoryList和HistoryItem类:[Serializable]publicclassHistoryRoot{publicHistoryListFiles=newHistoryList{sl=newSortedList(),list=newList(),max=500,c=program.M.qFile},Folders=newHistoryList{sl=newSortedList(),list=newList(),max=100,c=program.M.qFolder},