0
使用svcutil從WSDL生成C#代碼;如何避免svcutil爲集合類型生成XmlSerializerFormatAttribute?
我想避免XmlSerializerFormatAttribute屬性;我知道它爲什麼生產,不知道如何正確使用它來避免它?讓我們做一些研究;基本上在生成它的xsd片斷之下;任何想法?
<xs:complexType name="CNT_Country">
<xs:annotation>
<xs:documentation/>
</xs:annotation>
<xs:sequence>
<xs:element name="CountryId" type="xs:string"/>
<xs:element name="CountryName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="CNT_CountryLst_Type">
<xs:annotation>
<xs:documentation>This is List of Country</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" nillable="true" name="CountryList" type="CNT_Country"/>
</xs:sequence>
</xs:complexType>
</xs:element>