[Mono-list] Xml.Serialization empty element

Dominik Zablotny doza at sztorm.net
Tue Apr 18 19:21:06 EDT 2006

Dnia 18-04-2006, wto o godzinie 12:05 -0500, Jonathan Gilbert
> Just to elaborate on this (for the original poster), XML serializtion was
> designed with the goal of generating XML for instances of existing data
> types, and so using it for the inverse mapping -- taking an arbitrary XML
> structure and mapping a hierarchy of C# data types onto it -- is something
> that is not guaranteed to work.

But it's sooo convenient :P

> One approach to slightly sweeten the syntax might be to add an implicit
> conversion from your dummy class to 'bool':

That solves reading bool from program, but not writing it. Anyway, I can
live with my current solution. Thanks for all answers.

Dominik Zablotny
xmpp:doza at chrome.pl

More information about the Mono-list mailing list