Re: [protobuf] protobuf calling getter on deserialization?

2013-09-19 Thread Marc Gravell
What is the property? A sub-object? A List? If the serializer doesn't think it needs to call the setter: it won't. For example, the typical list handling code could be paraphrased (not the actual implementation) as: var list = obj.SomeList; bool setValue = false; if(list == null) {

[protobuf] protobuf calling getter on deserialization?

2013-09-18 Thread David Deutsch
I know this is a long shot, but is there any reason protobuf-net would call the getter of a property on deserialization, and not the setter? Most of my properties serialize and deserialize fine, but for one particular property only the getter is called, and thus deserialization fails. -- You