471,605 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Object (string) serialization

Hi,

I have a nested object (containing dictionaries) that i want to be able
to persist (and read back from) a configuration file.

Anyone has any ideas/pointers as to how to go about this. Essentially,
my objects are dictioanies of dictionaries, and I want to be able to
persist their state to text. Any help will be greatly appreciated.

thanks

Nov 29 '05 #1
2 1553
Ann,

Take a look at this article
http://msdn.microsoft.com/msdnmag/is...s/default.aspx
and more specifcally at the Q&A "I've noticed that XmlSerializer won't
serialize objects that implement IDictionary by default. Is there any way
around this?"

HTH
Stoitcho Goutsev (100) [C# MVP]

"Ann Huxtable" <an**********@research-labs.de> wrote in message
news:dm**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi,

I have a nested object (containing dictionaries) that i want to be able to
persist (and read back from) a configuration file.

Anyone has any ideas/pointers as to how to go about this. Essentially, my
objects are dictioanies of dictionaries, and I want to be able to persist
their state to text. Any help will be greatly appreciated.

thanks

Nov 29 '05 #2

Hi Ann,

Try XStream.NET (http://www.jroller.com/page/CoBraLorD/20050427) capable of
serializing/deserializing any (including objects implementing IDictionary)
objects.

Best regards,
Paul Gielens

Visit my blog @ http://weblogs.asp.net/pgielens/
###

"Ann Huxtable" <an**********@research-labs.de> wrote in message
news:dm**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi,

I have a nested object (containing dictionaries) that i want to be able to
persist (and read back from) a configuration file.

Anyone has any ideas/pointers as to how to go about this. Essentially, my
objects are dictioanies of dictionaries, and I want to be able to persist
their state to text. Any help will be greatly appreciated.

thanks


Nov 29 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Matthew | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.