Hi, I need to set a default value for a property, but I can't do it like this:
private int prop = 1;
public Prop { get {return prop;}... }
Because I need to serialize this class, and if I do it, I loose the default value. Exists any solution that works after the serialization and before, adding an attribute to the property or something like this?
I'm working with c# with framework 3.5. Thanks.