SerializationException when serializing lots of objects in .NET

后端 未结 9 935
深忆病人
深忆病人 2020-12-10 01:41

I\'m running into problems serializing lots of objects in .NET. The object graph is pretty big with some of the new data sets being used, so I\'m getting:

Sy         


        
9条回答
  •  旧巷少年郎
    2020-12-10 02:19

    Dude, you have reached the end of .net!

    I haven't hit this limit, but here are a few pointers:

    1. use [XmlIgnore] to skip some of the objects - maybe you don't need to serialize everything

    2. you could use the serializer manually (i.e. not with attributes, but by implementing Serialize() ) and partition the models into more files.

提交回复
热议问题