Back to my "Using" in C#

10 12 2004

Someone else (Jano) has posted a reason for using Using.  The fact that if you end up with an exception within the block, it still disposes of the item.  Couldn’t I just dispose of it in my catch?

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: