15.02.2015 Views

C# 4 and .NET 4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16<br />

Visual studio 2010<br />

WhaT ’ s in This ChaPTer<br />

➤<br />

➤<br />

➤<br />

➤<br />

Using Visual Studio 2010<br />

Refactoring with Visual Studio<br />

Visual Studio 2010 ’ s multi - targeting capabilities<br />

Working with the technologies WPF, WCF, WF, <strong>and</strong> more.<br />

At this point, you should be familiar with the <strong>C#</strong> language <strong>and</strong> almost ready to move on to the<br />

applied sections of the book, which cover how to use <strong>C#</strong> to program a variety of applications. Before<br />

doing that, however, you need to examine how you can use Visual Studio <strong>and</strong> some of the features<br />

provided by the .<strong>NET</strong> environment to get the best from your programs.<br />

This chapter explains what programming in the .<strong>NET</strong> environment means in practice. It covers Visual<br />

Studio, the main development environment in which you will write, compile, debug, <strong>and</strong> optimize your<br />

<strong>C#</strong> programs, <strong>and</strong> provides guidelines for writing good applications. Visual Studio is the main IDE<br />

used for everything from writing Web Forms, Windows Forms, Windows Presentation Foundation<br />

(WPF) applications, <strong>and</strong> even Silverlight applications to XML Web services, <strong>and</strong> more. For more<br />

details on Windows Forms <strong>and</strong> how to write user interface code, see Chapter 39, “ Windows Forms. ”<br />

This chapter also explores what it takes to build applications that are targeted at the .<strong>NET</strong><br />

Framework 4. Working with Visual Studio 2010 will provide you the ability to work with the latest<br />

application types, such as WPF, the Windows Communication Foundation (WCF), <strong>and</strong> the Windows<br />

Workfl ow Foundation (WF), directly.<br />

WorKing WiTh Visual sTudio 2010<br />

Visual Studio 2010 is a fully integrated development environment. It is designed to make the process<br />

of writing your code, debugging it, <strong>and</strong> compiling it to an assembly to be shipped as easy as possible.<br />

What this means is that Visual Studio gives you a very sophisticated multiple - document - interface<br />

application in which you can do just about everything related to developing your code. It offers<br />

these features:<br />

➤<br />

Text editor — Using this editor, you can write your <strong>C#</strong> (as well as Visual Basic 2010 <strong>and</strong> Visual<br />

C++) code. This text editor is quite sophisticated. For example, as you type, it automatically<br />

lays out your code by indenting lines, matching start <strong>and</strong> end brackets of code blocks, <strong>and</strong><br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!