Re: IDisposable or not in custom classes



"Dave Sexton" <dave@jwa[remove.this]online.com> wrote in message
news:esYSeexHHHA.4760@xxxxxxxxxxxxxxxxxxxxxxx

There are very specific guidelines in place for when to implement
IDisposable.

Are there? Are they available for download anywhere...?

".NET Framework Developer's Guide, Implementing Finalize and Dispose to
Clean Up Unmanaged Resources"
http://msdn2.microsoft.com/en-us/library/b1yfkh5e.aspx

".NET Framework Developer's Guide, Implementing a Dispose Method"
http://msdn2.microsoft.com/en-us/library/fs2xkftw.aspx

Check out the TOC on the left and you'll see a whole bunch of topics that
provide development guidelines for many other things.

Got a bit of reading to do, then...:-)

Thanks very much.


.



Relevant Pages

  • Re: what are unmanaged resources
    ... then you're not holding any unmanaged resources. ... Files and streams that you open via .NET Framework class methods are ... That's where writing your own Dispose() ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: 2 ways to close a connection
    ... and the most respected .NET Framework technical authors such ... > as Jeffrey Richter - you may choose to use Dispose only where it helps. ... > recommend using Dispose on every .NET Framework object. ... > This is not my recommendation to expert programmers who know "where it ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Package up VB.net application
    ... > to let my clients to install themselves ... Redistributing the .NET Framework 1.1 ... .NET Framework 1.1 Deployment Guide ...
    (microsoft.public.dotnet.languages.vb)
  • Re: com+, what more are needed?
    ... > I think you are missing the point. ... > .NET Framework Developer's Guide: ... > .NET Framework Class Library: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Internationalisierung MSGBox
    ... .NET Framework Developer's Guide -- Developing World-Ready Applications ...
    (microsoft.public.de.german.entwickler.dotnet.vb)

Loading