Brian Grunkemeyer of the Microsoft BCL team emailed me recently with the message:
"In this document: http://www.agiledeveloper.com/articles/DotNetGotchas.pdf you
have
an improper example of the Dispose pattern. Dispose(bool) should be protected,
not public.
Dispose(void) should call GC.SuppressFinalize(this) after calling Dispose(bool).
You can
check on the web for updated design guidelines ? Joe Duffy, myself, and a few others
cleaned
these up about 6 months ago."
Thanks Brian for taking the time to bring this to my attention. I sincerely appreciate
it. I have
updated the document at http://www.agiledeveloper.com/articles/DotNetGotchas.pdf.
[This error is only in this online example and not the .NET Gotchas book!]