.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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

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