แชร์ผ่าน


Basic Instincts MSDN Magazine Article: Collection and Array Initializers in Visual Basic 2010

I’ve written before about the new array and collection initializer support in Visual Basic 2010. In this month’s MSDN Magazine, Spotty shows us how this new syntax in Visual Basic will make you more productive when writing code.

Collection and Array Initializers in Visual Basic 2010

Visual Basic provides the same support as C# using the new “From” syntax which automatically calls Add for you on any collection that has an Add method. VB also allows you to take it a step further by supporting Extension Methods. If you provide an Add extension method of your own, VB will use that instead making your code even cleaner.

Check out my post and the article.

There’s also a lot of other great articles this month, in particular:

Enjoy!

Comments

  • Anonymous
    October 08, 2009
    Hi Beth, I was shocked a few months ago when I heard that VS2010 was coming out. I know 2010 is only a year away, but I don't even know VS2005 all that well, then there's the matter of learning VS2008 as well. Don't you think MS is moving a little fast? I mean, most peopple have barely got their teeth into the .Net Framework 3.5, and already 4.0 is being released with 2010 soon. I was on the VB General Forum on MSDN earlier this week and I came across a discussion that was started early this year entitled "What has Basic 2008 done to us?" (Or something like that). Apparently I'm not the only one who is concerned about this. There are a few people who've posted in that discussion saying that a few more years between releases would likely be a better idea than creating a new release every year. At the very least, it gives us more time to learn before the next release. Have you got any thoughts on this? Please share. Logan

  • Anonymous
    October 08, 2009
    @Logan:  I don't work at MSFT.  The answer to your question is a resounding "no".  This is technology.  Technology moves fast.  It's the nature of the business.  Your doctor should be up to speed on the latest research into medicine if he or she is to be considered a good doctor.  That means reading and continuing education.  I fail to see the difference here.  You are a software professional and an information worker.  Reading, doing, and analyzing are a key part of your job if you're going to be considered to be a good developer. MS has come up with some really revolutionary tech these past few years, and I definitely don't want to see them slow down -- Linq, WCF, WPF...  These are all huge in terms of productivity and capability and are well worth learning.  

  • Anonymous
    October 12, 2009
    Ok, so you just purchased visual studio 2008 what are you supposed to do? Just turn arond and dump it for the newer version.

  • Anonymous
    October 12, 2009
    The comment has been removed