XmlSerializer 测试 2

集合

运行结果为 True 。实际上,如果把 MyList 换成只读属性,只要其值非 null / Nothing,则程序仍可以正常运行。

也就是说,反序列化过程复用了已有的集合实例。 继续阅读“XmlSerializer 测试 2”

Content is available under CC BY-SA 3.0 unless otherwise noted.