动态创建的类反序列化问题(List)
动态生成了一个类。里边包含List<T>属性,T也为动态创建的类,
过程(生成List<T>过程):
Type tlist=typeof(List<>).MakeGenericType(tt);//tt为T的类型
string ss=arrCol[i].ToString();
CreateProperty(typebuilder, ss, tlist);//生成List<CL>
生成过程没有错误,但是将xml文件反序列化的过程报错了(There is an error in XML document (0, 0).),声明,文件没错,之前通过此文件用手写的类反序列化过,不知道还需要做什么特殊处理么?