Friday 29 July 2011

What is the difference between dropping out of scope and setting to nothing?

Dropping out of scope means that an object (or variable) no longer has visiblity (and is no longer valid) in the current procedure currently being executed, whereas setting an object reference to Nothing actually removes the object from memory (destroys it) altogether.

No comments:

Post a Comment