Microsoft Visual Studio 2010 continues to support Languages like Visual Basic and C# languages and giving you the ability to choose a language based on personal preferences as both languages have equal merits and demerits. The following tutorial shows Languages in Visual Studio 2010 and some of the new features in C#, Visual Basic and a new .NET Framework language named Visual F#.
Visual Basic Language
Visual Basic more commonly known as VB language now has new features in Microsoft Visual Studio 2010.
- VB syntax is shorter thus enabling you to write code faster than in previous versions.
- VB now supports auto-implemented properties, implicit line continuation, collection initializers, and single- and multi-statement lamdba expressions.
- VB also supports simplified deployment through type equivalence.
New features in C# work together to simplify programming with the Microsoft Office APIs.
- In C# you no longer have to specify values for every optional parameter when you call COM methods because C# now supports named and optional arguments.
- In C# you can reference any object, such as return values from COM APIs or dynamic languages, without using an explicit type cast because of the dynamic support.
- In C# access to COM interfaces is enabled with the use of Indexed properties and optional ref modifier.
- Deployment by embedding types from primary interop assemblies (PIAs) directly in your assembly is simplified because of the new type equivalence support in C# language.
A new .NET Framework language named visual F# is now available for you in Microsoft Visual Studio 2010. Visual F# supports functional programming, traditional object-oriented and procedural programming. Visual F# includes the succinct, expressive, and compositional style of functional programming with the runtime, libraries, interoperability, and object model of the .NET Framework. Microsoft says Visual F# is a language which provides you with the best of both paradigms.