G
Guest
I have a low level question . . .
If I have an assembly with a single class with a static int property, I know
the assembly will get loaded the first time the class is referenced. At that
point, I now have a "never been explicitly instantiated object" in memory
that can be accessed by all code that was built with a reference to the
assembly. Obviously, somewhere in the bowels of the system there is a
reference to this "never been explicitly instantiated object"
My question is, can this "object" ever get garbage collected since it came
into being without the need for "new" and there are no explicit references
that can be set to null ?? If not, then it must be destined to just waste
valuable address space until the process dies :*(
Thanks,
LES
If I have an assembly with a single class with a static int property, I know
the assembly will get loaded the first time the class is referenced. At that
point, I now have a "never been explicitly instantiated object" in memory
that can be accessed by all code that was built with a reference to the
assembly. Obviously, somewhere in the bowels of the system there is a
reference to this "never been explicitly instantiated object"
My question is, can this "object" ever get garbage collected since it came
into being without the need for "new" and there are no explicit references
that can be set to null ?? If not, then it must be destined to just waste
valuable address space until the process dies :*(
Thanks,
LES