Channel 9 Interview: No More Underscores in Visual Basic 10!
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!
Comments
Anonymous
March 27, 2009
PingBack from http://www.anith.com/?p=23671Anonymous
March 28, 2009
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 = qAnonymous
March 31, 2009
Great feature to remove _ thanks a lotAnonymous
April 04, 2009
Now all that is needed is allowing square brackets [ ] for arrays, instead of or in addition to using ( ).