I would have thought implementing IDictionary would have made serialisation a breeze. (then again I'm pretty duff with the totally obvious) Would I be able to write the contents as an XML string? i.e expose a property named xmlHashContents that does something like
<Connection value="xyz"/><User value="abc"/> (probably would get chance to try before the response) Robert. -----Original Message----- From: Christoph [mailto:[EMAIL PROTECTED]] Sent: Thursday, 6 June 2002 0:37 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Hashtable XML Serialization Robert, The XmlSerializer will not touch anything that implements IDictionary, it only serializes collections implementing ICollection or IList. Thus you can't just derive a class because the derived class implements IDictionary. You have to write a wrapper class with some public properties to access the contents of the Hashtable for the XmlSerializer to handle it. Let me know if you need more info. HTH, Christoph Schittko Software Architect Mshow - a division of InterCall ----- Original Message ----- From: "Rolls, Robert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 1:18 AM Subject: [DOTNET] Hashtable XML Serialization > In the following message > > http://discuss.develop.com/archives/wa.exe?A2=ind0201C&L=DOTNET&P=R1973&m=39 > 477 > > Ivan mentioned writing a wrapper class and adding the Add method? I'm not > exactly sure what I need to do? anybody like to explain in simple English. > Could you not derive from Hastable and add an interface that would sort the > problem out? > > > Regards, > Robert Rolls > > > > > **********************************************************************" > This correspondence is for the named person's use only. It may > contain confidential or legally privileged information or both. " > No confidentiality or privilege is waived or lost by any " > mistransmission. If you receive this correspondence in error, please > immediately delete it from your system and notify the sender. You > must not disclose, copy or rely on any part of this correspondence > if you are not the intended recipient. > > Any views expressed in this message are those of the individual sender, > except where the sender expressly, and with authority, states them to > be the views of Vodafone. > > This email has been checked for viruses. > **************************************************************************** ****************** > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. **********************************************************************" This correspondence is for the named person's use only. It may contain confidential or legally privileged information or both. " No confidentiality or privilege is waived or lost by any " mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Vodafone. This email has been checked for viruses. ********************************************************************************************** You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.