Saturday, May 30, 2009

Parametrized thread start

// Parametrized thread start

Thread t = new Thread (new ParameterizedThreadStart(FetchUrl));
t.Start (www.google.com);

// ....

static void FetchUrl(object _url)
{
string url = (string)_url;
}

No comments:

Post a Comment