Click here to Skip to main content
15,896,557 members
Articles / Programming Languages / Visual Basic

The "Using" Block as a Language Feature

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
5 Mar 2010CPOL3 min read 7.9K   6  
Download source (55.5 KB)IntroductionThe "using" block in C# and VB.NET can be used as a high-level language construct, not just as a way of tidying-up. In this article I show you how to capture and restore state using constructors and disposers.BackgroundIn any substantial...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United Kingdom United Kingdom
This member doesn't quite have enough reputation to be able to display their biography and homepage.

Comments and Discussions