CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Threaded View

  1. #1
    Join Date
    May 2006
    Posts
    306

    [RESOLVED] Thread Originating Method?

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

    Pseudo Code
    Code:
    Thread thr = new Thread(DoIt);
    Console.WriteLine(thr.BaseMethodName); // "DoIt", or MethodInfo of DoIt
    Anything?

    EDIT:

    Nevermind, ThreadStart.Method is where it is.
    Last edited by code?; May 15th, 2009 at 08:12 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured