I have a deep object hierarchy where the base class parameterless constructor looks like this:
public class BaseClass
{
private Session session_;
public BaseClass()
{
session_ = ...;
}
}
Serialization is OK. Problem happens in deserialization when the object construction tries to establish a connection to a webservice to construct the session object which is not necessary at all as all the values obtained from the session have been serialized. So the question is how do I customize / override the constructor to skip the deserialization of session field?