C# 3.0 Extension Methods Follow Up

  • 3 minutes to read
As I mentioned in my previous post, if you create an extension method with the exact same signature as an existing method your extension will be ignored. However, one thing that I didn’t mention is that if the extension method has a different signature, it will show up in that methods... Read more

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