Difference between "throw" and "throw ex" in .NET

  • 5 minutes to read
Exception handling seems to be a common problem for .NET developers, particularly younger developers. We pretty much all know that you should wrap operations that have the potential for failing in a try/catch block if you are interested in being able to do something about the error that occurred. I’m not... Read more

C# 3.0 Extension Methods

  • 8 minutes to read
At one time or another most of us have wished we could add functions to one of the intrinsic .NET classes. The solution has always been to either create a static (or sealed) class that contains these “helper” functions or derive a new class that adds the desired functionality. A good... Read more

.NET Framework version detection updated for .NET 3.5 Beta 2

  • 1 minute to read
My article on using managed code to detect what versions and service packs of the .NET Framework are installed on a system has been updated to account for a minor registry change between the January 2007 CTP and Beta 2. Along with that article, the article on using... Read more

URL File Downloader for .NET Updates, Part 2

  • 1 minute to read
Just yesterday I mentioned that I updated my FileDownloader article and class on The Code Project. In that post, I mentioned that there was another update pending that added the ability to set the User-agent HTTP header. I received the notification from The Code Project this morning that they... Read more

URL File Downloader for .NET Updates

  • 1 minute to read
It’s been a while since I wrote the first version of my FileDownloader article and class. Since that time, there have been a lot of positive comments about the article and a handful of feature requests. I finally made the time to update the classes and the article and... Read more