The problem with something like the XmlSerializer is that it does not support
serialization of dictionaries.
Does anyone else have any other ideas to this problem?
Thanks.
"Peter Duniho" wrote:
> On Wed, 02 Jul 2008 00:20:01 -0700, ztRon
> <(E-Mail Removed)> wrote:
>
> >> It would be interesting to try to serialize to a more readable format
> >> and
> >> see what the specific differences are. I don't have the time at the
> >> moment to explore too much, but it's something you might like to try.
> >
> > This example was actually derived from a more complex code if that was
> > what
> > you meant.
>
> No, it's not. The code you posted was fine. I'm talking about the
> resulting data itself. Serialize less, and to a format like SOAP so that
> you can take the two alternatives and inspect them as text files
> side-by-side. That should give you some clues as to what differences
> exist between the two. And that _might_ lead you to some useful
> conclusion as to why such a simple change produces such a dramatic
> difference.
>
> If you can accomplish that with the output from the BinaryFormatter, more
> power to you.
But I'd go with a text-format serialization. I naïvely
> tried to swap in an XmlSerializer for the BinaryFormatter, but of course
> it has different requirements from the regular serialization stuff (for
> one, it requires everything to be public that's going to be serialized).
> I didn't have the time to make the necessary adjustments, but that could
> be something you might try, since the output from the XmlSerializer is yet
> again much more readable than SOAP.
>
> Pete
>