Re: XMLSerialization

Peter Osucha <[email protected]> Wed, 18 Jul 2007 21:11:43 -0400
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <018301c7c9a1$c5526ee0$0302a8c0@peterhome>
Duh.  Thanks Adam.  I looked at that for a half an hour and didn't see that
problem.

My apologies.

Looking back over the last few weeks, it seems that soon we will need to
change the name of this forum to 'Peter's C# Questions', eh? :-)

Peter

-----Original Message-----
From: Discussion relating to the specifics of the C# and Managed C++
languages [mailto:[email protected]] On Behalf Of Adam Sills
Sent: Wednesday, July 18, 2007 5:14 PM
To: [email protected]
Subject: Re: [DOTNET-CX] XMLSerialization

You're serializing MyItemHolder but attempting to deserialize List<MyItem>

button1_click
System.Xml.Serialization.XmlSerializer xser = new
System.Xml.Serialization.XmlSerializer ( typeof ( MyItemHolder ) );
button2_click System.Xml.Serialization.XmlSerializer xser = new
System.Xml.Serialization.XmlSerializer ( typeof ( List<MyItem> ) );

Those need to be the same.

Adam..

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

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