Language Features

Thus far you’ve looked at the basics of programming with the .NET languages including building objects and solving common coding issues with respect to looping, handling logic, and creating and consuming events. In this section we try to point out some additional elements that make the .NET languages special. Many of these items are not necessarily things you might use every day; however, they can provide you with additional skills when writing code and better understanding when reading it. The .NET language features covered here include the following:

• Local Type Inference (also called Implicit Typing)

• Object Initializers

• Collection Initializers (new)

• Extension Methods

• Anonymous Types

• Lambda Expressions

• Partial ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.