Proper way to implement IXmlSerializable?

前端 未结 5 486
逝去的感伤
逝去的感伤 2020-11-22 05:34

Once a programmer decides to implement IXmlSerializable, what are the rules and best practices for implementing it? I\'ve heard that GetSchema() sh

5条回答
  •  死守一世寂寞
    2020-11-22 06:15

    I wrote one article on the subject with samples as the MSDN documentation is by now quite unclear and the examples you can find on the web are most of the time incorrectly implemented.

    Pitfalls are handling of locales and empty elements beside what Marc Gravell already mentioned.

    http://www.codeproject.com/KB/XML/ImplementIXmlSerializable.aspx

提交回复
热议问题