Starting today, we're releasing a new series of tutorial videos on Visual Studio 2010 to our members. Our "First Impressions Visual Studio 2010" series will tell you everything you need to know and make some practical applications of the new features of Visual Basic 2010, C# 4.0, ASP.NET 4.0, .NET Class Library 4.0, the Visual Studio 2010 IDE and much more. Our first video demonstrates the new features of Visual Basic 2010 (over 30 minutes!!!), including demonstrations of the following features ... (Read more ...)
- "Consume First" Mode ... allowing you to automatically create stubbed out implementation of classes, methods and properties by simply coding the interface you would like to have (and letting Visual Studio 2010 take care of the rest)
- Auto generated properties (and the hidden auto generated fields)
- We demonstrate how to automate the stubbing out of getters and setters for auto generated properties ... just in case you change your mind later and need to take control of the process
- The new IDE feature that visually highlights the current symbol (object, variable, etc.) in all locations in the code editor, allowing you to navigating through all instances of the symbol using Ctrl and the arrow keys
- Collection initializers and the "From" keyword (Yay! They caught up with C# 3.0). To demonstrate how useful collection initializers are, we review of object initializers in VB9 and grow the example to demonstrate collection initializers. Also, we take the example a bit further, creating a VB9 extension method to overload the List(Of T).Add() method to further improve the conciseness of collection initializer.
- We demonstrate how the underscore line continuation character is not always required (Yay!)
- Multi-line lambdas ... or rather, a more "functional" style of programming enabled by allowing multi-lined anonymous methods. We demonstrate how useful this is by tipping our toes ever so gently into the deep end of the pool of the new Parallel processing features (we'll cover these at length in another video) ... using the System.Threading.Parallel.Invoke method to process functions in background threads and execute parts of your code asynchronously. That wouldn't be easily possible, or as concise, without multi-line lambdas in VB2010.
Next week ... new features in the C# 4.0 language.