Re: Serializing Dictionaries
Peter Obiefuna <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.clr |
|---|---|
| Message-ID | <[email protected]> |
What if you implement a factory class (NativeTypeSerializer) that resolves native types. The NativeTypeSerializer will then implement IXmlSerializable and all is well again in your world! P -------------------------------------------------- From: "Brady Kelly" <[email protected]> Sent: Thursday, December 13, 2007 7:06 AM To: <[email protected]> Subject: [DOTNET-CLR] Serializing Dictionaries > I have an object graph in which most nodes contain generic Dictionary > objects of other classes. After looking at IXmlSerializer I can't decide > whether to go this route, or just derive all my dictionaries from a > serializable dictionary. If I implement IXmlSerializer, I would then > require each element of my dictionary to also implement this interface, so > I > can call WriteXml on each one, but what happens if the dictionary element > is > a built-in type, such as string? > > > =================================== > 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