如hfwang009(windy) ArrayList在内部通过default public constructor构造一个新的对象,再通过反射把各个字段复制进去。
请问timelyraining(恨天): 具体如何解决?勿见笑,谢谢!
我已加入了默认的构造函数,出现的错误是:System.InvalidOperationException: The type aaa was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.
public aaa()
{
}
ArrayList在内部通过default public constructor构造一个新的对象,再通过反射把各个字段复制进去。
具体如何解决?勿见笑,谢谢!