
What's New in the Original Release Version of Visual C# 2008
C# 3.0 Language
The C# 3.0 language and compiler introduce several new language features. These new language constructs are useful individually in various contexts, and collectively for doing Language-Integrated Query (LINQ). For more information about LINQ, see The LINQ Project.
The following table lists the new C# 3.0 language features:
C# 3.0 Compiler
- /win32Manifest and /noWin32Manifest compiler switches.
These new compiler switches are used to specify requested execution levels for programs running on Windows Vista.
Visual C# IDE
Feature
|
Description
|
|---|
Multi-targeting
|
Visual Studio 2008 enables you to specify a version of the .NET Framework for your project, .NET Framework 2.0, 3.0, or 3.5. The .NET Framework target of an application is the version of the .NET Framework that is required on a computer to enable the application to run on that computer. For more information, see Targeting a Specific .NET Framework.
|
New Project Types and Templates
|
Several new project templates are provided for Windows Presentation Foundation, Windows Communication Foundation, and Web projects. For more information, see Project Templates in Visual C# Editions and Default Project Templates in Visual Studio.
|
IntelliSense support for C# 3.0
|
The Visual C# code editor provides statement completion and Quick Info to support the following new language constructs in C# 3.0:
For more information, see Visual C# IntelliSense.
|
Refactoring Support for C# 3.0
|
The refactoring features, Rename, Signature Change, Extract Method, and Promote Local have been updated to support the following new language constructs:
Query Expressions
Extension Methods
Lambda Expressions
In addition, refactoring provides new options and warnings to help prevent unintended consequences from a refactoring action. For more information, see Refactoring.
|
Code Formatting
|
The code editor supports formatting options for several new C# 3.0 language constructs including query expressions. For more information, see Formatting, C#, Text Editor, Options Dialog Box.
|
Organizing Using Statements |
The Visual C# code editor provides an easy way to sort using and extern declarations and remove those that are not being used.
|