.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
Post a Comment