How do I determine if a Process is Managed in C#?

前端 未结 2 494
长发绾君心
长发绾君心 2020-12-11 18:46

A bit of searching returns this result: Which processes are running managed code and which version?

However I am wondering if there is a \'better\' way then simply i

2条回答
  •  情书的邮戳
    2020-12-11 19:11

    In code, get the full path of the executing process. Try to use Assembly.Load on the process. If it works, it's a .Net assembly :)

提交回复
热议问题