Channel 9 Interview: No More Underscores in Visual Basic 10!

Published 27 March 09 09:11 AM

I just posted a new Channel 9 interview on a nifty little feature which isn't so little when you look at it from the compiler. In this interview, Tyler Whitney, a developer on the Visual Basic compiler team demonstrates how line termination has changed in the Visual Basic 10 compiler making underscores unnecessary as line continuation indicators. Woot!

This makes your code more readable especially when writing multi-line LINQ queries. It's also really handy not to have to worry about them when writing multi-line lambdas, a new feature of Visual Basic 10. Check out Tyler's blog post that explains the details.

Yes it's true, many underscores are unemployed so the team has created a support group for them at www.unemployedunderscores.com :-)

Enjoy!

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Anith » Channel 9 Interview: No More Underscores in Visual Basic 10! said on March 27, 2009 5:00 PM:

PingBack from http://www.anith.com/?p=23671

# Rajesh Simar said on March 28, 2009 8:11 AM:

I am new to VB.Net, developing an application.

I am using Sql Server Management Studio 2008 and VB 2008.

In my Database There is two tables i.e. Current_All and Payments.

In Payments table there is only two comman fields Account_ID and Amount.

I just wanted to update amount from Payments into Current_All on the basis

of Account_ID. I map those accounts and filled an Unbound DataGrid.

Now I want to update these Accounts into Current_All.

Either I can update directly from Payments to Current_All table or

update table(Current_All) from unbound datagrid but dont know how??

Pls help me out with some code example. Here is code below

how I mapped the data and filled Datagrid:

Dim q = From c In db.Current_All _

Group Join o In db.Payments On c.Account_ID Equals

o.Account_ID Into Payment = Group _

Let BiP = c.BP _

From o In Payment Select New With {c.Account_ID, o.Amount, BiP}

Me.DataGridView1.DataSource = q

# Andre Moraes said on March 31, 2009 11:27 PM:

Great feature to remove _

thanks a lot

# NoRss said on April 4, 2009 4:11 PM:

Now all that is needed is allowing square brackets [ ] for arrays, instead of or in addition to using ( ).

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

About Beth Massi

Beth is a Program Manager on the Visual Studio Community Team at Microsoft and is responsible for producing and managing content for business application developers, driving community features and team participation onto MSDN Developer Centers (http://msdn.com), and helping make Visual Studio one of the best developer tools in the world. She also produces regular content on her blog (http://blogs.msdn.com/bethmassi), Channel 9, and a variety of other developer sites and magazines. As a community champion and a long-time member of the Microsoft developer community she also helps with the San Francisco East Bay .NET user group and is a frequent speaker at various software development events. Before Microsoft, she was a Senior Architect at a health care software product company and a Microsoft Solutions Architect MVP. Over the last decade she has worked on distributed applications and frameworks, web and Windows-based applications using Microsoft development tools in a variety of businesses. She loves teaching, hiking, mountain biking, and driving really fast.

This Blog

Syndication

Page view tracker