.net - When I set a variable to a new object, does the old value die? -


assume have variable, list(of t), 100 elements instances of class....

if set variable new list(of t) 100 instances, old ones totally disappear, right? they...die. absolutely thing of past, right?

assuming nothing else points 100 things, yes, eligible garbage collection.


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

java - where to store the user credentials in an enterprise application(EAI)? -

java - netbeans "Please wait - classpath scanning in progress..." -