This project has moved. For the latest updates, please go here.

Serialization using getters / setters

Feb 10, 2010 at 4: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.


Feb 10, 2010 at 10: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.