Hi,
how can I call a method, being referenced by a delegate object, via a thread ?
Here's what I try :
public delegate void PrintDelegate() ;
static void Print()
{
Console.WriteLi ne("Print()");
}
Main()
{
PrintDelegate pDel = new PrintDelegate(P rint);
// call the function using a thread
ThreadStart thStart = new ThreadStart(??? ); BUT HOW ???
Thread th = new Thread(thStart) ;
th.Start();
}
thnx
Chris
*************** *************** *************** *************** **********
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
how can I call a method, being referenced by a delegate object, via a thread ?
Here's what I try :
public delegate void PrintDelegate() ;
static void Print()
{
Console.WriteLi ne("Print()");
}
Main()
{
PrintDelegate pDel = new PrintDelegate(P rint);
// call the function using a thread
ThreadStart thStart = new ThreadStart(??? ); BUT HOW ???
Thread th = new Thread(thStart) ;
th.Start();
}
thnx
Chris
*************** *************** *************** *************** **********
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Comment