阅读背景:

.NET XML序列化和空集合

来源:互联网 

I have a class with some collections in them, and I would like to serialize instances of this class to XML without having to initialize the collections to be empty, and without having to implement IXmlSerializable. I don't care if it creates empty elements, or doesn't create the elements at all. Just that it works without having to initialize a collection for each collection based property.I have a class with some collections in them, a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: