Virtual PC VHD to Bootable VHD How-To

I’ve been trying to put together a bootable VHD within Virtual PC for a couple weeks now, and while I’ve gotten the VM configured to my liking, I’ve been missing the step to convert that VM’s VHD into a generalized, bootable image.

Finally, I’ve found the answer I’ve been looking for:

Continue reading “Virtual PC VHD to Bootable VHD How-To”

Linkback: "Visual Studio 2008 C# IDE is Slow … Really slow."

Here’s a MSDN forum article that links back to my post about the VS2008 hotfix:

I believe there are known issues with VS2008 and web development.  This article contains a link to some hotfixes for VS2008 web development.  Maybe it’ll fix your problem:


Null-Coalescing Operator

While at a rather disappointing MSDN event yesterday, I came across one gem of C# 3.0 candy in the form of a null-coalescing operator. This is basically a short-cut for the oft seen:

string emailAddress = parsedValue != null ? parsedValue : “(Not provided)”;


string emailAddress = String.Empty;
if (parsedValue != null) {
emailAddress = parsedValue;
else {
emailAddress = “(Not provided)”;

Using the Null-Coalescing Operator
These can now instead be re-written using the new null-coalescing operator as:

string emailAddress = parsedValue ?? “(Not provided)”;

This can roughly be read as “Set emailAddress equal to parsedValue unless it is null, in which case set it to the literal (Not Provided)”.

(via Null-Coalescing Operator)