C# 3.0 Extension Methods Follow Up

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

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

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]

URL File Downloader for .NET Updates, Part 2

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]