How can I enumerate all managed threads in C#?

前端 未结 3 1395
遇见更好的自我
遇见更好的自我 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:46

    Debuggers are often able to do things "normal" code can't. You'd probably find that you can do this if you use the profiling/debugging API, but I don't believe you can do it from "normal" .NET code.

提交回复
热议问题