Is there a way to export an XSD schema from a DataContract

后端 未结 3 723
清酒与你
清酒与你 2021-01-02 08:32

I\'m using DataContractSerializer to serialize/deserialize my classes to/from XML. Everything works fine, but at some point I\'d like to establish a standard schema for the

3条回答
  •  温柔的废话
    2021-01-02 08:52

    Yes, you can use XsdDataContractExporter.

    An example is provided in the MSDN article Exporting Schemas from Classes.

提交回复
热议问题