Timeline for Using statement in context of streams and WebClients
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 6, 2012 at 1:00 | comment | added | svick |
@TrevorPilley, it's still not correct. Your current text makes it sound like Finalize() has something to do with IDisposable . Sure, when you have Finalize() you almost always implement IDisposable too, but it's not technically necessary.
|
|
Mar 5, 2012 at 23:38 | comment | added | Trevor Pilley | @svick is correct, I meant to say Finalize not Dispose in that last paragraph I'll update the answer to correct it. | |
Mar 5, 2012 at 23:37 | history | edited | Trevor Pilley | CC BY-SA 3.0 |
Corrected the last paragraph as I mistakenly put Dispose() instead of Finalize() and added some additional clarification.
|
Mar 5, 2012 at 22:08 | comment | added | svick | @SeanH, well, I don't think that's a pedantic error. I think it's quite important and if you believe what Trevor wrote, it might bite you big time. | |
Mar 5, 2012 at 21:46 | comment | added | Sean H | @svick - I don't think you understand the meaning of the word "completely." For example, finding a pedantic error among a multi-faceted answer that is otherwise correct is not "completely wrong." I'm only saying something because your comment may mislead some people with regards to the quality of the question. | |
Mar 5, 2012 at 19:52 | comment | added | svick |
This is completely wrong. The GC never calls Dispose() . But it does call the finalizer, which usually does the same cleanup of unmanaged resources as Dispose() .
|
|
Mar 5, 2012 at 18:43 | vote | accept | cillierscharl | ||
Mar 8, 2012 at 12:42 | |||||
Mar 5, 2012 at 13:56 | history | answered | Trevor Pilley | CC BY-SA 3.0 |