Simple lottery number generator in C#

July 24, 2008

This tutorial will talk you through how to write a simple lottery number generator. People often get bogged down in figuring out how to ensure the same number doesn’t get drawn twice, but C# makes this very easy for us.

Read the rest of this entry »


Simple logging in c#

July 23, 2008

Logging is an important tool in a developer’s toolbox. Although the need for logging as while coding has virtually disappeared thanks to Visual Studio’s debugging mode, it still helps dealing with run-time bugs, especially for applications deployed on customer machines. It helps to be able to grab all the log files and then investigate the probelm back at the office, away from the customer’s prying eyes (you don’t want to worry them now do you!).

This tutorial will give you an introduction to logging in C#. From this you should be able to go ahead and write your own logging classes. If you would like help in doing this then just ask. Anyway, lets get started.

Read the rest of this entry »


Accessing Network Card Information in C#

July 23, 2008

It is common for modern PCs to have more than one NIC, including virtual ones (such as those created by VMware for example). This tutorial will talk you through how to access each card’s information.

Read the rest of this entry »