Can somebody please clarify why we use ThreadStart?
new Thread (new ThreadStart (Update)).Start(); -Versus-
new Thread (Update).Start(); // Seems more straightforward
private void Update() { }
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t have to. If you do, only you can say why…
Since C# 2, method groups (i.e. references to a method via its name) are implicitly convertible to delegates with the same signature. Since the
Threadconstructor takes aThreadStart, you can pass it a method group with the same signature asThreadStart.