(Mis)Using IDisposable: beyond resource clean-up(blog.functionalfun.net)

submitted by samuel_d_jacksamuel_d_jack(415) 3 years, 8 months ago

Anybody who has ever done any work with files, databases and so on, in C#, has had it drummed into them that they must be good citizens and always tidy up after themselves. Usually that means using using. But did you know that the using statement has uses that go far beyond resource cleanup?

5 comments |category: |Views: 34

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 lcorneliussenlcorneliussen(490) 3 years, 8 months ago 0

Good article!

Reply

posted by lcorneliussenlcorneliussen(490) 3 years, 8 months ago 0

But be careful, when i submitted my story myself once, it got deleted after a couple of minutes :-)

Reply

posted by samuel_d_jacksamuel_d_jack(415) 3 years, 8 months ago 0

Lars, Thanks - I'll bear that in mind. But it does appear to be faily common practice to submit ones own stories. For small blogs like mine it's often the only way people find the articles!

Reply

posted by gavinjoycegavinjoyce(25.7k) 3 years, 8 months ago 0

There is no problem with submitting your own stories.

Reply

posted by lcorneliussenlcorneliussen(490) 3 years, 8 months ago 0

thanks. good to know :-) then it was a typo :-)

Reply

information Login or create an account to comment on this story