C# Switch Case Order Doesn’t Matter

3 Comments »

The order of C# switch case statements in your code has no effect on performance.

Read the rest of this entry »

Visual Studio 2008 and .NET 3.5 Service Pack 1 Released

1 Comment »

Microsoft has released Service Pack 1 for Visual Studio 2008 and .NET 3.5.  This update patches numerous bugs, improves performance, and even adds a few new features. 

As a .NET commercial software developer, I am most excited that SP1 provides a .NET Framework installation optimized for client applications.  The optimized download is less than 28 MB, compared to the original 200 MB download that all but ensured consumers would not download .NET 3.5 and hence forced us to remain on .NET 2.0 (see FAT .NET).

Read more…

Sort C# Array in Descending/Reverse Order

14 Comments »

How do you sort a C# array in descending or reverse order?  A simple way is to sort the array in ascending order, then reverse it:

Read the rest of this entry »