XMLSerializer and a collection of collections?
-
Can I use the XMLSerializer to serializer a collection of collections? I have a TaskCollection class that is a collection of Tasks. My task class has an instance of a RecordCollection class that is a collection of Records. So it goes TaskCollection -> Task -> RecordCollection -> Record. I was able to XMLSerialize the TaskCollection before I added a RecordCollection to my Task class. Why can't I serialize a collection of a class that has a collection of another class?
-
Can I use the XMLSerializer to serializer a collection of collections? I have a TaskCollection class that is a collection of Tasks. My task class has an instance of a RecordCollection class that is a collection of Records. So it goes TaskCollection -> Task -> RecordCollection -> Record. I was able to XMLSerialize the TaskCollection before I added a RecordCollection to my Task class. Why can't I serialize a collection of a class that has a collection of another class?