P
Pekus Cons. e Desenvolvimento
Hi,
I have seen some developers commenting that a reference variable is 'more
garbage collection eligible' if the programmer set its value to null after
using it, like this:
public void MemberFunction()
{
AnyClass refVar = new AnyClass ();
// Normal use of refVar functionalities
refVar = null;
}
Is it real? Any comment about?
Thanks,
Baccarin.
I have seen some developers commenting that a reference variable is 'more
garbage collection eligible' if the programmer set its value to null after
using it, like this:
public void MemberFunction()
{
AnyClass refVar = new AnyClass ();
// Normal use of refVar functionalities
refVar = null;
}
Is it real? Any comment about?
Thanks,
Baccarin.