What’s new in CLR via C#, 3rd Edition as compared to the 2nd Edition

Last week I submitted the reaming chapters for my new book. It is now being edited and should be available right around the time that Visual Studio 2010 launches (March 22, 2010). One place you can order it is here: http://www.amazon.com/CLR-via-C-Third-Pro-Developer/dp/0735627045 I know that many people will ask me what are the differences between the…

Migrating Polling Duplex Binding Element from Silverlight v2.0 to v3.0 for WCF Services In The Cloud Code Samples

When running the WCF / Windows Azure samples (see my previous blog entry) you may get an error indicating that the Polling Duplex Binding Element cannot be loaded if you have Silverlight v3.0 installed (The type ‘System.ServiceModel.Configuration.PollingDuplexElement, System.ServiceModel.PollingDuplex’ registered for extension ‘pollingDuplex’ could not be loaded). Replace the reference in the WcfSamples project from the…

VS 2010 Beta 2 Concurrency Visualizer Profiling In Depth First Look

One of the most important technologies used at Microsoft is Event Tracing for Windows (ETW), especially inside Windows 7 and Server 2008 R2. There’s a small problem with ETW. It’s beyond wonderful for the Windows team at Microsoft, but for just about everyone else, it’s not so hot. Don’t get me wrong, ETW is an…

VS 2010 Beta 2 Concurrency Resource Profiling In Depth First Look

Nearly everyone reading this is using a machine with multiple cores. With a basic laptop containing a dual core CPU and your average desktop with a four core CPU, we have processing power our computing ancestors could only dream about. Most of us developers are writing multithreaded applications to take advantage of that power, but…

Silverlight 3’s New Client Networking Stack

One of the most useful yet little-known new features of Silverlight 3 is one that has nothing to do with UIs: a brand new networking stack called the client HTTP stack, the client networking stack, or simply the client stack. Silverlight 2 introduced rich networking to Silverlight. With classes such as WebClient and HttpWebRequest, you could…

Using .NET 4.0 Tasks with the AsyncEnumerator

I’ve been doing a lot of work with the new Task class that ships with .NET 4.0 as I’ve been revising my CLR via C# book (due out in early 2010). Task are really good for performing asynchronous compute-bound work and while my AsyncEnumerator was really designed for performing I/O-bound work using the CLR’s APM,…

Silverlight Behaviors and Triggers: Making a Trigger Action

So far we’ve explored how to use dependency properties and attached properties to create reusable behaviors and triggers. I showed you recently how to refactor an attached property to use the Behavior base class instead. Today, we’ll look at the TriggerAction that is also available in System.Windows.Interactivity (either as a part of Expression Blend, or…

Initially Turning on FxCop/Code Analysis for a Large Code Base

Recently I was asked a question that’s come up several times so I thought I’d share the answer. I’ve inherited a large code base that has never had FxCop run on it. When I ran the binaries through FxCop, it reported tens of thousands of warnings, which overwhelmed me. While I should fix those warnings,…