Skip to main content

Über dieses Buch

Microsoft has introduced a large number of changes to the way that the .NET Framework operates. Familiar technologies have being altered, best practices replaced, and developer methodologies adjusted. Many developers find it hard to keep up with the pace of change across .NET's ever-widening array of technologies. You may know what's happening in C#, but how about the Azure cloud? How is that going to affect your work? What are the limitations of the pLINQ syntax? What you need is a roadmap. A guide to help you see the innovations that matter and to give you a head start on the opportunities available in the new framework.

Introducing .NET 4.0: with Visual Studio 2010 is designed to provide you with just that roadmap. It serves as a no-nonsense primer that will help experienced .NET developers understand the impact of the new framework and its associated technologies. This book will keep you updated on the changes and help you to seize new opportunities confidently and quickly.



Chapter 1. Introduction

These are exciting times to be a .NET developer, and Visual Studio 2010 (VS2010) and the .NET 4.0 framework have brought a bewildering number of changes. But fear not! In this book I will be getting you up to speed on these enhancements, and also taking a brief look at some of the important out-of-band releases, such as ASP.NET MVC, Silverlight, and WCF Data Services. There is some cool stuff in this release, and most of it is not that tricky (with the exception of variance and parallelization) to get to grips with.
Alex Mackey

Chapter 2. Visual Studio IDE and MEF

This release of Visual Studio sees the IDE overhauled and much of it rewritten using WPF and managed code. The move to WPF allows Microsoft to make some stunning aesthetic additions to the IDE, and also opens up customization possibilities when combined with the new Managed Extensibility Framework (MEF).
Alex Mackey

Chapter 3. Language and Dynamic Changes

There are some welcome changes to C# and VB.NET, and major enhancements to the Common Language Runtime(CLR) and Base Class Library (BCL) in .NET 4.0. I have separated these changes into two chapters:language (this chapter) and CLR and BCL (Chapter 4), although there is of course some overlap.
Alex Mackey

Chapter 4. CLR and BCL Changes

In this chapter you will look at the changes to the common language runtime (CLR) in .NET 4.0 that cover changes to security, garbage collection, threading, and internationalization. You will then look into the new types introduced in .NET 4.0 and the enhancements that have been made to existing classes. You will finish the chapter by looking at code contracts a great new feature allowing you to express assumptions and constraints within your code.
Alex Mackey

Chapter 5. Parallelization and Threading Enhancements

Until recently, CPU manufactures regularly released faster and faster processors. Speed increases, however, have all but ground to a halt due to various issues such as signal noise, power consumption, heat dissipation, and non-CPU bottlenecks.
Alex Mackey

Chapter 6. Windows Workflow Foundation 4

Windows Workflow Foundation (WF) was first introduced in 2006 with .NET 3.0. It is probably fair to say that WF didn’t receive the widespread adoption Microsoft was hoping for. This lack of uptake was probably due to a number of factors:
  • Although the WF designer offers a natural way of working, it is a very different way of developing applications and contains a new API to master.
  • Slow performance.
  • Writing your own work flow activities was not as easy as it could be.
  • Handling and passing data between activities was cumbersome
  • Limited support for messaging scenarios and integration with WCF.
  • Some developers were confused by the hosting model.
  • A clunky designer interface made you want to poke your own eyes out (OK, it wasn’t that bad but it wasn’t that good either).
Alex Mackey

Chapter 7. Windows Communication Foundation

Windows Communication Foundation (WCF) developers will be glad to know that this release of WCF shouldn’t break any existing applications. The focus in WCF 4 has been to make it easier to use while also bringing in some new features, such as routing, support for WS-Discover protocol(a method for discovering services), and some enhancements from the WCF REST starter kit.
Alex Mackey

Chapter 8. Entity Framework

Entity Framework (EF) is Microsoft’s Object Relational Mapping (ORM) solution and was first released with .NET 3.5SP1. Entity Framework received much criticism when it was first released and the team at Microsoft has been hard at work to address some of these criticisms in the latest version.
Alex Mackey

Chapter 9. WCF Data Services

WCF Data Services (previously “Astoria” and ADO.NET Data Services) allows data to be modified and exposed over an HTTP RESTful interface. WCF Data Services (WDS) contains a rich query language and can be accessed easily with automatically generated proxy classes or crafting raw HTTP requests.
Alex Mackey

Chapter 10. ASP.NET

ASP.NET is a mature platform on which to build web applications, and it is probably fair to say that most of the changes in this release are enhancements and tweaks. However, don’t skip this Chapter, because Microsoft has fixed a number of long-term omissions and introduced some very welcome changes.
Alex Mackey

Chapter 11. Microsoft AJAX Library

Visual Studio 2010 includes a new version of the Microsoft AJAX libraries that can be used in any web application. When working with the Microsoft AJAX library, many developers believe that it consists of little more than the UpdatePanel, which is a shame because it offers so much more. Many developers also believe that the Microsoft AJAX libraries can be utilized only in ASP.NET applications. They would be wrong; the Microsoft AJAX library is (mostly) just plain ol’ JavaScript files and can be utilized in any web application—ASP.NET, PHP, Ruby, or anything else you can think of. Although some functionality doesn’t make much sense outside of the ASP.NET platform, it’s a tiny part of the libraries.
Alex Mackey

Chapter 12. jQuery

In a surprising but excellent move, late 2008 Microsoft announced that it would be integrating jQuery into Visual Studio. jQuery is used by some very big names such as Amazon, Google, Dell, IBM, and Slashdot (for a full list, please refer to
Alex Mackey

Chapter 13. ASP.NET MVC

ASP.NET MVC is Microsoft’s implementation of a tried and tested architectural pattern. MVC separates out an application’s user interface, logic, and data, and makes it easier to test, extend, and maintain. MVC stands for Model, View, Controller. If you were to map these terms to a traditional ASP.NET/database application (and they don’t map exactly) you might consider the following:
  • Model would be the database.
  • View would be the pages and controls.
  • Controller would manage the interaction between the pages/controls (view) and the database (model).
Alex Mackey

Chapter 14. Silverlight Introduction

Some might say that Silverlight is Microsoft’s version of Adobe’s Flash and Flex products. This doesn’t really do it justice, though. Silverlight has a number of compelling features that make it an ideal choice for creating web applications with the functionality traditionally only found in desktop applications. These applications are known as Rich Internet Applications (or RIA to its friends).
Alex Mackey

Chapter 15. WPF 4.0 and Silverlight 3.0

WPF and Silverlight developers get some great new features in this release and will benefit from a more stable and feature-rich IDE, fine-grained control over text rendering, multitouch APIs, ability to cache any part of the visual tree, support for Windows 7 features such as jump lists, and much more.
Alex Mackey

Chapter 16. Windows Azure

The research company Gartner defines cloud computing as:
“A style of computing where massively scalable IT-related capabilities are provided as a service”
Alex Mackey


Weitere Informationen

Premium Partner

BranchenIndex Online

Die B2B-Firmensuche für Industrie und Wirtschaft: Kostenfrei in Firmenprofilen nach Lieferanten, Herstellern, Dienstleistern und Händlern recherchieren.



Best Practices für die Mitarbeiter-Partizipation in der Produktentwicklung

Unternehmen haben das Innovationspotenzial der eigenen Mitarbeiter auch außerhalb der F&E-Abteilung erkannt. Viele Initiativen zur Partizipation scheitern in der Praxis jedoch häufig. Lesen Sie hier  - basierend auf einer qualitativ-explorativen Expertenstudie - mehr über die wesentlichen Problemfelder der mitarbeiterzentrierten Produktentwicklung und profitieren Sie von konkreten Handlungsempfehlungen aus der Praxis.
Jetzt gratis downloaden!