serialize private fields

Dec 13, 2013 at 10:32 AM
Is there a way how to serialize/deserialize private fileds. Ideally by decorating field with some attribute like in JSON.NET with [JsonProperty] attribute?
Mar 5, 2014 at 11:38 AM
I would like to know the same.
Private fields/setters and private constructors would be nice for (faked) immutable objects.