Durytools

DuryTools was my collection of useful C# code that I used in many projects between 2003 and 2006. As I was mostly a self-employed freelance developer, I didn’t have access to the latest and greatest tools and technologies. An MSDN subscription was too expensive for me to buy and I had to make due with my copy of Visual Studio 2003 that I “borrowed” from one of my employers. They wouldn’t be using the license so I figured it was OK for me to use it, but it meant I was stuck in .NET 1.1 for a long time.

Anyway, I put this library together which had my most common classes and functions that I needed to build the websites I was working on.

You can see that there isn’t much there, but I’ll break it down:

DAL

This was my wrapper around the Microsoft Patterns and Practices Data Application Block that just facilitated some config-by-convention and gave me a DataSet oriented approach to managing data within a web application.

DataContainer

This was my wrapper around the SqlClient classes found in the framework. It was also DataSet oriented and mixed in a lot of SQL string statements.

Utils

What would a library be without a Utils class? In this case there were some QueryString and String Sorting stuff I wanted to re-use. Luckily much of this was made obsolete by later versions of the .NET Framework.

IO

Contains some methods to facilitate creating directories on disk without requiring full-trust code. This was useful for many of my customer websites which were on shared hosting. I also had a generic ErrorHandler exception class which didn’t do much at all.

BaseControl/BasePage

In the time before MasterPages we needed the ability to include Header and Footer files which surrounded the content. These classes also exposed properties for Title and Metadata elements within the HTML page.

The source code is available on GitHub as well.