I am trying to generate C# code from an XSD using xsd.exe
Here is a snippet of the problematic area
<xs:element name="EmailConfiguration" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="DefaultSendToAddressCollection" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="EmailAddress" type="xs:string" minOccurs="1" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
Currently DefaultSendToAddressCollection is being generated as a string[]
How can I change the xsd, so that it is generated as a strong type, and email addresses as a collection to the strong type?
Question Update:
Or is xsd.exe bugged?