|
-
June 1st, 2012, 12:12 AM
#1
Find all instances of type
Let's say I've defined a class, and I'm using this class all over the place in my code.
Now let's say that I need to quickly access every instance of this class and do something to it. Is there a way to do this in C# without keeping a list or dictionary of all of the instances?
In other words, can I say "find all instances of class Foo on the heap"?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|