开发者

Does the DataContractSerializer call property getters/setters?

开发者 https://www.devze.com 2023-01-13 14:36 出处:网络
I know that on deserialization the DataContractS开发者_如何学Cerializer does not call the constructor.Does it also bypass a public or private property\'s setter method?Just tried it out -- The propert

I know that on deserialization the DataContractS开发者_如何学Cerializer does not call the constructor. Does it also bypass a public or private property's setter method?


Just tried it out -- The property accessors are not bypassed regardless of visibility (public, private, etc).

0

精彩评论

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

关注公众号