更新时间:2023-10-11 16:29:16
Instriker,通过使用XML序列化,IXmlSerializable接口可以进行这种自定义.在那里,您可以定义自己的WHOLE Xml文档以进行序列化/反序列化...但是在WCF上,我想这不可能使框架能够根据WCF/etc的绑定选择***的序列化程序. ..
Instriker, working with XML Serialization, the IXmlSerializable interface allows for this kind of customzation. There you define the WHOLE Xml document to serialize/deserialize as you like... but on WCF I suppose this not possible in order to give the framework the ability to choose the best serializer according to the setup of the Bindings of WCF/etc...