.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 "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -