Welcome to thinktecture forums
Sign in
|
Join
|
Faq
Discussion
Started by bwlang at 03-13-2008 10:33 PM. Topic has 0 replies.
thinktecture fo...
»
WSCF
»
Discussion
»
<xs:choice> constructs generate stupid code...
Search
Sort Posts:
Oldest to newest
Newest to oldest
03-13-2008, 10:33 PM
bwlang
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...
(please select)
Forums Home
|- Search Forums
|- Active Topics
|- Unanswered Posts
User Options
|- Sign In
|- Join this community
|- Forgot Password
WSCF
|- Discussion
|- Feature Requests
|- Announcements
DynWsLib
|- Discussion
© 2002 - 2006 by thinktecture, Ingo Rammer and Christian Weyer. All rights reserved.