What's different:
1. 数组不为空,但其中的元素均为空时:如Email[];
XmlSerializer:
nothing.
DataContractSerializer
<Email></Email>
Datacontract出来的xml中没有Attribute, 像是为提高那10%的性能
Datacontract 不支持Group和choice 标签
你用svcutil 生成时,使用不同的参数,来声明具体使用哪个
What's different:
1. 数组不为空,但其中的元素均为空时:如Email[];
XmlSerializer:
nothing.
DataContractSerializer
<Email></Email>
Datacontract出来的xml中没有Attribute, 像是为提高那10%的性能
Datacontract 不支持Group和choice 标签
你用svcutil 生成时,使用不同的参数,来声明具体使用哪个
转载于:https://www.cnblogs.com/DataFlow/archive/2011/08/15/2138735.html