Languages in Visual Studio 2010

languagesMicrosoft 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.

C# Language

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.

Visual F#

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.

In Visual Studio 2010, the Visual Basic and C# languages continue to move toward feature parity. This enables you to choose a language based on personal preferences because both languages are equally capable. This section lists some of the new features in C# and Visual Basic. 

Visual Basic Language

Visual Basic has new features that shorten syntax and enable you to write code faster. These features include auto-implemented properties, implicit line continuation, collection initializers, and single- and multi-statement lamdba expressions. Additionally, Visual Basic now supports simplified deployment through type equivalence. For more information, see What’s New in Visual Basic 2010.

C# Language

The new features in the C# language work together to simplify programming with the Microsoft Office APIs. With named and optional arguments, you no longer have to specify values for every optional parameter when you call COM methods. With dynamic support, you can reference any object, such as return values from COM APIs or dynamic languages, without using an explicit type cast. Indexed properties and optional ref modifiers facilitate access to COM interfaces. Also, type equivalence support simplifies deployment by embedding types from primary interop assemblies (PIAs) directly in your assembly. For more information, seeWhat’s New in Visual C# 2010.

In Visual Studio 2010, the Visual Basic and C# languages continue to move toward feature parity. This enables you to choose a language based on personal preferences because both languages are equally capable. This section lists some of the new features in C# and Visual Basic.

 

Visual Basic Language

 

Visual Basic has new features that shorten syntax and enable you to write code faster. These features include auto-implemented properties, implicit line continuation, collection initializers, and single- and multi-statement lamdba expressions. Additionally, Visual Basic now supports simplified deployment through type equivalence. For more information, see What’s New in Visual Basic 2010.

 

C# Language

 

The new features in the C# language work together to simplify programming with the Microsoft Office APIs. With named and optional arguments, you no longer have to specify values for every optional parameter when you call COM methods. With dynamic support, you can reference any object, such as return values from COM APIs or dynamic languages, without using an explicit type cast. Indexed properties and optional ref modifiers facilitate access to COM interfaces. Also, type equivalence support simplifies deployment by embedding types from primary interop assemblies (PIAs) directly in your assembly. For more information, see What’s New in Visual C# 2010.

 

 

 

 

 

 

 

 

Related Tutorials:

This entry was posted in ASP.NET 4 Theory and tagged , , , , , . Bookmark the permalink.