create xml for collection class
-
I succeeded to serialize an object, my problem is to serialize another object that contains an ArrayList of objects. I want to save in the xml each of the objects that are kept in the ArrayList, how can I do it??? thank you very much,sharon
The collection must be strongly typed in order for the XML Serializer to work. Specifically the indexer must return the type and the IEnumerator implementation of Current must return the same type. There are a couple different strongly typed generators out there, my favorite is CollectionGen from Chris Sells. There is another from Microsoft, which you can find on the GotDotNet website. HTH, James Simplicity Rules!
-
The collection must be strongly typed in order for the XML Serializer to work. Specifically the indexer must return the type and the IEnumerator implementation of Current must return the same type. There are a couple different strongly typed generators out there, my favorite is CollectionGen from Chris Sells. There is another from Microsoft, which you can find on the GotDotNet website. HTH, James Simplicity Rules!