Search code examples
.netserializationdatacontractserializer

Does the DataContractSerializer call property getters/setters?


I know that on deserialization the DataContractSerializer does not call the constructor. Does it also bypass a public or private property's setter method?


Solution

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