Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to get minOccurs=1 maxOccurs=unbounded in WCF Datamember c#

I need get an xs complexType element with this structure:

xs:complexType name="Calls"
xs:sequence
xs:element name="Call" type="m:Call" minOccurs="1" maxOccurs="unbounded"
xs:sequence
xs:complexType

I tried generate with Xsd the Datacontracts and when run my code I got minOccurs="0" and maxOccurs=unbounded and when used XMLSerializer and IsRequired = True doesn´t work

There is some way to get this?

My base class begins with:

public partial class Calls : System.Collections.Generic.List<Call>

Thanks for your help.

Comments