开发者

OnDeserialized with xml serialization

I've been trying to implement开发者_如何学Python the OnDeserialized attribute in a method inside a class. After I deserialize the class with XmlSerializer the method is never called.

Is OnDeserialized method called even when the serialized class is a member property of the main class being serialized?

Is there something I'm missing?


The XML Serializer does not use OnDeserialized or OnSerialized. It also doesn't use the [Serializable] attribute, BTW.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜