Serialization using getters / setters

Feb 10, 2010 at 5:08 PM

Does this version support serialization of objects that do NOT use properties but instead use getter / setter pairs?

We are currently porting from another language which used getter / setter pairs and would love to be able to serialize our objects using this library but without having to re-write our objects to use properties.

Thanks in advance.

Whatty

Coordinator
Feb 10, 2010 at 11:13 PM

Not automatically. You could inherit from DefaultContractResolver and modify it to use getters and setters. Another option is LINQ to JSON to manually convert from objects to JSON and back again.