Paul Fallon's WebLog

From Ireland: a little bit of this and a little bit of that

The "Using" statement is coming to VB in Whidbey

okay, its sort of old news and I'm paddy last :)

but the "Using" statement is coming to VB in the Whidbey realease. The Using statement is a nice clean way of scoping a block of code and saying that it uses this resource within that block of code. Its behavior is like that of the Try...Finally construct and this allows you to use a resource within the Try block and have it dispose the resource in a finally statement.

 

Published Tuesday, October 12, 2004 9:38 AM by no1138
Filed under:

Comments

 

Bob said:

How is it different from the With statement of VB6 fame ?
November 8, 2004 10:44 PM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker