I used to think that all objects that implement
IDisposable should be disposed. But I found 80% of the
classes implement IDisposable.
But when I looked into the samples, most objects are not
disposed. Generally, they're Gdi objects, form controls,
most components, etc.
So why? How can I decide to dispose or not?
IDisposable should be disposed. But I found 80% of the
classes implement IDisposable.
But when I looked into the samples, most objects are not
disposed. Generally, they're Gdi objects, form controls,
most components, etc.
So why? How can I decide to dispose or not?
Comment