Re: Settings Files and Hashtables

Christopher Frazier <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
Hashtables can't be xml-serialized, strings can. They can be serialized with
the binary formatter, however. I believe there are also some new collections
(Dictionary<K,V> maybe?) that are more friendly to persistance than the good
old Hashtable.


--
-Christopher
ASP.NET MVP | AspInsider
http://chrisfrazier.net/blog

-----Original Message-----
From: Discussion relating to the specifics of the C# and Managed C++
languages [mailto:[email protected]] On Behalf Of Brady Kelly
Sent: Friday, September 29, 2006 7:41 AM
To: [email protected]
Subject: [DOTNET-CX] Settings Files and Hashtables

I'm trying to store a collection of column widths in my user settings.
However, if I define a setting that is of the HashTable type, the class
generated by the designer doesn't include code to instantiate the object.
Using a simple string type setting works as expected.  Is this a limitation
on only using certain types for settings, or what?


===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.