DataContractSerializer with Multi-tiered data structures
问题 I'm attempting to implement a DataContractSerializer to generate an XML file that represents our somewhat complicated object model. The root object has multiple ICollection properties, one of which has multiple ICollection properties, multiples of which have multiple ICollection properties... you get the idea. I decorated all my relevant classes with [DataContract(Name = "foo")] tags, read this question about using Include() , and started framing it out. As I put together the top layer, I