Possible Duplicate:
What is the difference between new Thread(void Target()) and new Thread(new ThreadStart(void Target()))?
I have a small question about Thread class. This class has 4 constructors:
public Thread(ParameterizedThreadStart start);
public Thread(ThreadStart start);
public Thread(ParameterizedThreadStart start, int maxStackSize);
public Thread(ThreadStart start, int maxStackSize);
I use the 2nd constructor to create a Thread object:
Thread thread = new Thread(new ThreadStart(ScanDirectory));
However, I can use a way to create this object without using any constructors I talk above.
Thread thread = new Thread(ScanDirectory);
In this case, ScanDirectory is a void method, it isn't ThreadStart or ParameterizedThreadStart but Thread class still accepts this constructor. Why? I think this is a .NET feature but I don't know how it's implemented.
Note: ScanDirectory is a void method.