Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一个等效的工具可以xsd.exe从模式生成类,但用于 withDataContractSerializer而不是 with XmlSerializer?
xsd.exe
DataContractSerializer
XmlSerializer
否 - DCS 不支持 XML 格式的大量自定义 - 当 DCS 用于线路的两端时,它的目的是比 XmlSerializer 更快。因此,您不能采用任意模式并将其映射到具有 DCS 的类型。如果您需要架构的灵活性(例如,匹配现有架构),XmlSerializer 是正确的选择。