I'm looking for a way to find a specific running thread by name. I came across the System.Diagnostics.Process.Threads collection but unfortunately, this collection holds ProcessThread objects which don't provide the thread's friendly name.
I expected to find something like that in System.AppDomain. But while there is a CurrentThread property, this class lacks any sort of collection for all running threads.
I am pretty sure that there's something like what I'm looking for. However, the debugger is able to display friendly names for each thread and so is e.g. CodeSite.
Does anybody know a hook within .NET 2.0 where to find a list of running threads with friendly names?