简体   繁体   中英

How can I get the list of live objects in c#?

I want to get the list of live objects defined in my application.

By live objects, I mean every objects created.

For example, let's say there are controls object created in some part of an application and I want to access a particular one by name.

Or I would want to access some private object in some public class where I have no "starting" point of access to the public class object.

There must be a way since it's what a debugger does essentially.

Not an easy task. I think the closest is the Profiler API . This is another site that is a good reference for profiling API.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM