Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Generic xml serializer class that can serialize dictionaries


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 dechorus   Members   -  Reputation: 118

Like
0Likes
Like

Posted 22 January 2012 - 02:33 PM

Hello,



I've searched and searched the net for serializer classes that do as the topic describes, but have found none. Is anybody out there using a serializer class that can take care of everything for them? The best I got -- I have to specify an array of all other custom classes that the object I'm trying to serialize contains, and even then, it cannot serialize dictionaries, since they're not supported. Using this class also doesn't serialize private objects, for obvious reasons, but I'd like to know if there is a way to serialize them using a helper class.



How do you handle your XML Serialization?



Is having a single class to take care of everything possible? If anybody can point to some classes I could download or code online, that would be great. Your personal solutions would also be appreciated.



Sponsor:

#2 Don Carnage   Members   -  Reputation: 553

Like
0Likes
Like

Posted 26 January 2012 - 09:23 AM

Some pages and examples I found to get you on your way:

http://theburningmonk.com/2010/05/net-tips-xml-serialize-or-deserialize-dictionary-in-csharp/
http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx
http://blogs.msdn.com/b/adam/archive/2010/09/10/how-to-serialize-a-dictionary-or-hashtable-in-c.aspx
http://stackoverflow.com/questions/1124597/why-isnt-there-an-xml-serializable-dictionary-in-net
http://www.jankowskimichal.pl/en/2010/10/serializabledictionary/
It is I, the spectaculous Don Karnage! My bloodthirsty horde is on an intercept course with you. We will be shooting you and looting you in precisely... Ten minutes. Felicitations!




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS