Xml Serialization

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a class derived from System.Collections.CollectionBase. How do I do
serialization for it?

If two or more instances of class A share an instance of class B in my
object hierachy, how do I serialize them so that the instance of class B just
be serialized once? How do de-serialize it back?
 
XML Serialization in .Net is really not hard to do. The basic class you use
is the XmlSerializer for both serialization and deserialization. Many
classes can be serialized without any changes. Collections fall into that
category. See the documentation fo the XmlSerializer class, which has quite
a bit of information about the topic:
http://msdn2.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
 
Back
Top