Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Xml Serialization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roy - 21 Jul 2006 03:50 GMT
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?
Kevin Spencer - 21 Jul 2006 11:18 GMT
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

Signature

HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.

>I have a class derived from System.Collections.CollectionBase. How do I do
> serialization for it?
[quoted text clipped - 3 lines]
> just
> be serialized once? How do de-serialize it back?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.