What is the difference between ThreadStart
delegate passing to Thread
constructor in code below:
class Program
{
public static void ThreadMethod()
{
//...
}
static void Main(string[] args)
{
Thread t = new Thread(ThreadMethod);
Thread t = new Thread(new ThreadStart(ThreadMethod));
t.Start();
}
}
In both cases program works in same way. Why I should create new delegate object and call ThreadMethod
delegate constructor?