I am trying to serialize an object, but HttpClient is causing problems. I can not serialize HttpClient - and personally I wouldn't want to - but when the object is de serialized, I need to ensure a HttpClient is available to make requests.

Is there a method that is called when an object is de serialized so I can ensure I create the HttpClient object and it's available for use?

Below is an example. The idea is that a user saves the session, and the serialized file is saved to disk. When the user loads the file, the cookieJar will restore the users Twitter session meaning they don't have to log back in (if the cookie session is still alive). I could just store the CookieCollection but, there's other data in the object that I need stored too. Hence why I am going about it this way.

```
[serializable()]
public class Twitter
{
    private HttpClient client;
    private CookieContainer cookieJar;

    private String username, password;

    public Twitter(string _username, string _password)
    {
        username = _username;
        password = _password;
    }
}

```