XML class generator for serialization

后端 未结 3 1750
生来不讨喜
生来不讨喜 2020-12-21 14:36

Is there an easy way to construct class from a XML. The constructed class will be used to serialize and deserialize XML.

I have an XML with lots of properties and e

3条回答
  •  攒了一身酷
    2020-12-21 14:57

    Further on Willem's post:

    This will generate the XSD (not dataset)

    xsd.exe myCustom.xml
    

    This generates the C# class:

    xsd.exe myCustom.xsd /c
    

提交回复
热议问题