How can I enumerate all managed threads in C#?

前端 未结 3 1397
遇见更好的自我
遇见更好的自我 2020-12-01 17:57

Is it possible to enumerate all managed threads in C#? Visual Studio seems to be able to do this when you hit a break point while debugging. In the \"Threads\" window it sho

3条回答
  •  不知归路
    2020-12-01 18:50

    This sounds like a duplicate of "How to enumerate threads in .NET using the Name property?" - If so, the short answer is "keep track of your own threads yourself" - i.e. in a List or similar.

提交回复
热议问题