Click to See Complete Forum and Search --> : [RESOLVED] Thread Originating Method?


code?
May 15th, 2009, 07:42 PM
Okay, so if I start a new thread like this.
Thread thr = new Thread(DoIt);
Is there some property, class, or function to get the target method when the thread was made?

Pseudo Code

Thread thr = new Thread(DoIt);
Console.WriteLine(thr.BaseMethodName); // "DoIt", or MethodInfo of DoIt


Anything?

EDIT:

Nevermind, ThreadStart.Method is where it is.