Welcome to thinktecture forums Sign in | Join | Faq

Discussion

Started by bwlang at 03-13-2008 10:33 PM. Topic has 0 replies.

Print Search
Sort Posts:    
   03-13-2008, 10:33 PM
bwlang is not online. Last active: 3/13/2008 8:27:00 PM bwlang

Top 500 Posts
Joined on 03-13-2008
Posts 1
<xs:choice> constructs generate stupid code...
If you use <xs:choice><element><element></xs:choice>
you get stupid code like this


 [System.Xml.Serialization.XmlElementAttribute("MassAmount", typeof(MassAmount))]
        [System.Xml.Serialization.XmlElementAttribute("VolumeAmount", typeof(VolumeAmount))]
        public object Item
        {
...

Why not 2 properties with set nulling the other value?

see my blog posting for more detail.


   Report 
thinktecture fo... » WSCF » Discussion » <xs:choice> constructs generate stupid code...

Powered by Community Server, by Telligent Systems