xs:choice element to C# – Google Search
Posted by jpluimers on 2018/01/10
Some links via xs:choice element to C# – Google Search.
I need them one day to better understand xsd:choice mapping to C# for both XSD and WSDL usage.
I have the feeling that the WSDL and XSD importer are trying to be smart, so for instance when you have multiple choices that come down to a common basic type like a derivation from xsd:string
, it makes to two properties: a C# enumeration to select the type and a C# string
value for the content referencing the enumeration through a XmlChoiceIdentifierAttribute
.
- [WayBack] From XML to Strong Types in C# – CodeProject
- [WayBack] Representing xsd:choice element in C# | Dimitri Glazkov
- [WayBack] Choice Element Binding Support explaining the
XmlChoiceIdentifierAttribute
. - [WayBack]
<xsd:choice>
Element - [WayBack] Dealing with an XSD Choice when XSD.exe doesn’t add XmlChoiceIdentifierAttribute – MCS UK Solution Development Team
–jeroen
Leave a Reply