S
Sam Sungshik Kong
Hello!
A disposable object's Dispose() method can be called either explicitly by
the programmer or implicitly during finalization.
If you call Dispose, the unmanaged resources are released earlier.
Thus, if you think the unmanaged resources are important, you call Dispose
explicitly.
My question is what's the criteria to decide the unmanaged resources are
important.
I think...
files are important.
DB connections are important.
What about window handles?
What about Graphics?
I want to hear what you think about it.
Thanks.
Sam
A disposable object's Dispose() method can be called either explicitly by
the programmer or implicitly during finalization.
If you call Dispose, the unmanaged resources are released earlier.
Thus, if you think the unmanaged resources are important, you call Dispose
explicitly.
My question is what's the criteria to decide the unmanaged resources are
important.
I think...
files are important.
DB connections are important.
What about window handles?
What about Graphics?
I want to hear what you think about it.
Thanks.
Sam