Reply to topic
XML Serialization
bobum
Elvis Fanatic
Elvis Fanatic

Joined: 16 Nov 2004
Posts: 746
Location: Montgomery, AL
Reply with quote
A little more passage of knowledge here from my map project...

This is a GREAT tutorial to get you started on seializing XML in .NET using C#

http://www.codeproject.com/csharp/xml_serializationasp.asp

But there are a couple "things to remember" when you are using serialization operations...

You MUST have at an empty default constructor for serialization to work, even if you override it and never actually use it in your code.

Public properties that are not value types but use accessors, MUST have a setter, even if it is empty, for that item to be serialized.

SPent about 4 hours wondering WHY IN THE HE|| my stuff wasn't serializing till I realized these two points...
XML Serialization
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic