开发者

Using .Net, is it possible to get the list of all "running/active" instances from a specific type?

I would like to know if it is possible to get all the objects running from an application/assembly/appdomain of a specific type...

I don't think reflection would help in this case as I need an object before hand. However开发者_如何转开发, I want to got the other way: from a type I want all the objects created from it.

Is this possible with .Net?


No, it isn't possible - at least not without using the debugger/profiler API. That may make it possible (I wouldn't like to swear) but it's not really an API you should be using unless you're really writing a debugger or profiler.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜