When writing software for the commercial world it is crucial your application can log errors, be it to the database, or to a text file, or even to the Windows Event Log if necessary. The .NET Framework contains a mechanism called a Trace Listener. This Listener is an object which directs the trace output to [...]
Sometimes when programming, you might want to create a number of methods which internally have similar logic but accept different parameters. For example, an addition method called AddNumbers which, erm… adds numbers together, might accept two parameters of type int. But what if you want to add long values, or double values? You could create [...]
Since this is my first actual post, I thought I should start at the very beginning – with a traditional ‘Hello World’ example. During these examples I am going to be using Microsoft Visual Studio 2008 to write and compile my C# code. If you do not have Visual Studio installed on your pc, you [...]