Dare Obasanjo answered the question in [0].

There are several approaches to work around the issue. I have an
implementation of a wrapper class on GDN [1].

Aaron Skonnard also recently published a work around based on the "for
internal use only" interface IXmlSerializable, but I can's find the link
(honest!).

HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[0]
http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28000438
[1]
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=803c8997-70ae-4af8-ab3a-a2fa20b3628e

----- Original Message -----
From: "Larry O'Brien" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 4:49 PM
Subject: [ADVANCED-DOTNET] Why Hashtable not serializable via XML?


> If you try to serialize a System.Collections.Hashtable with an
> XmlSerializer, you get an exception with the message "The type
> System.Collections.Hashtable is not supported because it implements
> IDictionary." In the XMLSerializer description, it says that XMLSerializer
> uses an indexed Item property rather than GetEnumerator, but doesn't give
> a design rationale. Is this just implementation funkiness or is there a
> performance or other issue?
>
> Cheers,
> Larry
> http://www.ThinkingIn.NET/

Reply via email to