XmlSerializer and DataContractSerializer 不同

What's different:

1. 数组不为空,但其中的元素均为空时:如Email[];

        XmlSerializer:

                          nothing.

        DataContractSerializer

                          <Email></Email>

Datacontract出来的xml中没有Attribute, 像是为提高那10%的性能

Datacontract 不支持Group和choice 标签

你用svcutil 生成时,使用不同的参数,来声明具体使用哪个

原文地址:https://www.cnblogs.com/DataFlow/p/2138735.html