Thomas
Thomas

Reputation: 177

.NET : System.Threading.ThreadStart Class

I have questions about System.Threading.ThreadStart Class :

thanks

Upvotes: 0

Views: 694

Answers (2)

Damien_The_Unbeliever
Damien_The_Unbeliever

Reputation: 239764

Well, if you got ROTOR, you should have been able to answer at least one of your questions:

    // In the case of a static method passed to a delegate, this field stores
    // whatever _methodPtr would have stored: and _methodPtr points to a
    // small thunk which removes the "this" pointer before going on
    // to _methodPtrAux.
    internal IntPtr _methodPtrAux;

Upvotes: 1

user1228
user1228

Reputation:

1) ThreadStart is a delegate, not a class. It is a variable that holds a pointer to a method. In this case, it is any method that takes no parameters and returns no variable. So you can do something like this:

private void SomeMethod() {}

public void StartThreadingLol()
{
  var thread = new Thread(SomeMethod);
}

2) Whatever field that is it doesn't have anything to do with you as a .NET programmer. Why do you think you need it?

Upvotes: 1

Related Questions