This Wrox Blox is a value-packed resource to help experienced .NET developers learn the new .NET release. It is excerpted from the Wrox books:
Professional C# 4 and .NET 4, Professional ASP.NET 4, and WPF Programmer’s Reference by Christian Nagel, Bill Evjen, Scott Hanselman, and Rod Stephens, and includes more than 100 print book pages drawn from these three key titles. It is an excellent resource to help .NET developers get up to speed fast on .NET 4, C# 4.0, ASP.NET 4, and WPF, providing all the information needed to program with the important new features, including: C# Dynamic Types and Parallel Tasks; ASP.NET Ajax, Chart Controls, MVC, and Object Caching; and key WPF principles as developers move from WinForms to WPF. In addition, it provides examples built with the native Visual Studio 2010 tools that developers are comfortable with.
Table of Contents
Part I: Professional C# 4 and .NET 4
Covariance and Contra-variance
Covariance with Generic Interfaces
Contra-Variance with Generic Interfaces
Tuples
The Dynamic Type
Dynamic Behind the Scenes
Code Contracts
Preconditions
Postconditions
Invariants
Contracts for Interfaces
Tasks
Starting Tasks
Continuation Tasks
Task Hierarchies
Results from Tasks
Parallel Class
Looping with the Parallel.For Method
Looping with the Parallel.ForEach Method
Invoking Multiple Methods with the Parallel.Invoke Method
Cancellation Framework
Cancellation of Parallel.For
Cancellation of Tasks
Taskbar and Jump List
Part II: Professional ASP.NET 4 in C# and VB
Chart Server Control
ASP.NET AJAX Control Toolkit
Downloading and Installing the AJAX Control Toolkit
ColorPickerExtender
Extending
.NET 4’s New Object Caching Option
Historical Debugging with IntelliTrace
Debugging Multiple Threads
ASP.NET MVC
Defining Model-View-Controller
MVC on the Web Today
Model-View-Controller and ASP.NET
Using WCF Data Services
Creating Your First Service
Adding Your Entity Data Model
Creating the Service
Building an ASP.NET Web Package
Part III: WPF Programmer’s Reference
Code-behind Files
Example Code
Event Name Attribute
Resource
Defining Resource
Merged Resource Dictionaries
Styles and Property Trigger
Simplifying Properties
Unnamed Styles
Triggers
IsMouseOver Triggers
Setting Opacity
Event Triggers and Animation
Event Triggers
Storyboards
Media and Timelines 85
Templates
Template Overview
ContentPresenter
Template Binding
Template Events
Glass Button
Researching Control Template
Skins
Resource Skins
Animated Skins
Dynamically Loaded Skins
Printing Visual Objects
Printing Code-Generated Output
Data Binding
Binding Basics
ListBox and ComboBox Templates
Binding Database Objects
Transformations
Effects
Documents
Fixed Documents
Flow Documents
Three-Dimensional Drawing
Basic Structure
Lighting
Materials
Building Complex Scenes