Filed under Just code

Json.Net – private setters

This post is a simple on explaining how you can make Json.Net handle private setters. I will show you three solutions but only one fullfills my requirements: – No attributes should be required – No fields should be serialized/deserialized only properties Sounds easy. Lets dig in. First of all a failing test: Assert.AreEqual failed. Expected:<Daniel>. … Continue reading »