vb.net - Nested using statements -


As Eric Gunnersson shows in the blog post, in C # you can use Nest As statements:

  (StreamWriter w1 = File.CreateText ("W1")) (StreamWriter w2 = File.CreateText ("W2")) {// code here}  

Is there a similar way to do this in VBnet? I want to avoid many indentation levels.

like this:

  as new cheating Using, using new alignment () ... as the _b  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -