please see these sample codes:
try
{
string str = MyMethod();
}
catch
{
}
public string MyMethod()
{
CookieContainer cookieJar = new CookieContainer();
... -> Some Codes That Make An Exception
}
How Can I Pass cookieJar To Catch Method?
thanks in advance
You make a new
and then you