[Mono-list] c# serialization

Elan Feingold efeingold@mn.rr.com
Thu, 20 Feb 2003 21:22:18 -0600


> I think you are probably heading for Xml serialization, so...
> 
> Second: If those var1 and var2 are reference types (classes instead of
> structs), just keep the unused one as null, and it won't be serialized
to
> xml.
> 
> Third: If these are xml simple types (ints, floats, strings, ...), you
can
> use a different approach: serializing them as attributes, that besides
being
> more compact has a higher level of control using the xxxSpecified
trick.

Forth: Don't try to Deserialize your Xml, because this hasn't been
implemented yet!

(I'm actually working on it right now...)

-elan