Hi Guys,
Please can any one advise me if there is an object in .net that can be used to get a list or references to all objects that are currently in scope for an object. For example if the code is currently executing in a method, what objects declared in this method are currently instanciated and alive and what objects that are declared at class level have been instanciated already and are alive?
Also I know I can test each object declared explicitly for a null reference, but I am looking for something that is more generic (perhaps using reflection?) that can be used from any method to clear up all alive objects.
Thanks in advance,
Best regards,
Duane.