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"?