Implementing IDisposable(blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4024) 3 years, 6 months ago

Classes that use unmanaged resources, or that hold references to managed objects that themselves use unmanaged resources, should always implement the IDisposable interface. The correct use of this interface ensures the efficient release of resources.

1 comment |category: |Views: 26

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by yesthatmcgurkyesthatmcgurk(4063) 3 years, 6 months ago 0

They forgot the destructor, and didn't make it clear (if at all) where unmanaged resources should be released.

Reply

information Login or create an account to comment on this story