Just wanted to know that is it still a common practice to set an object to nothing in VB.NET ? Or it is better off to implement IDisposable for all your classes and let GC auto manage it for you ?
I tend to always write codes like below , as i thought that by just disposing it , it is still available in memory but by setting it to nothing , it will be released . Correct me if I am wrong .. I just want to keep on learning and practice good programming . =)
Dim x As New Object() x.Dispose() x = nothing
This post has been edited by AdamSpeight2008: 28 February 2012 - 08:09 PM