dispose is the best when cleaning the resources rather than setting to null.......
but as .net has inbuilt garbage collector, you don't even need to worry about that.....either you set it null or dispose manually, the object will be cleaned with just a bit of difference in time........
when there is a need of resources, GC is called automatically.........
Main Topics
Browse All Topics





by: angelIIIPosted on 2008-04-30 at 13:48:27ID: 21474413
if the object is complex, the Dispose can make sure all internally used resources are cleaned up explicitly.