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>