|
-
May 26th, 2010, 04:20 AM
#1
Thread Starter
Junior Member
XmlSerializer to serialze a class with a collection
Hi all,
I have a custom class that has one property as a collection.
For some reason XmlSerializer doesnt like the class having a collection property and the Serialize Fails!
If I remove the collection property it works!
Is there a special way of getting the collection in the class to work?
Cheers in advance!
-
May 26th, 2010, 04:29 AM
#2
Re: XmlSerializer to serialze a class with a collection
Is your collection of the type Collection? If so, the reason your serialization fails is because the Collection class is not serializable. Consider using a List(Of T) instead.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|