dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU](no subject)


From: Rhys Weatherley
Subject: Re: [DotGNU](no subject)
Date: Thu, 18 Oct 2001 09:29:08 +1000

Tali Streit wrote:

> ToXML by default returns an XML string that encases the member values: for
> int, this would be "<int>32</int>". for user defined class,
> "<MyClass><int>32</int><string>Hello World</string></MyClass>".

I think this stuff is already there, but isn't part of "System.Object".
It is part of the serialization stuff that is used to support SOAP.
I couldn't tell you the exact namespaces as I haven't gotten that
deep into the library yet.

Putting serialization in "System.Object" wouldn't be very wise
because there are many different serialization types, each with
their own peculiar requirements.  Microsoft's approach is the
right one from a design patterns point of view: separate the
representation from the serialization.

Cheers,

Rhys.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]