T newObject = new T();

How to easily create new "T-typed objects" in your generic classes.

Continue reading "T newObject = new T();"

Blockwriter, the greatest typewriter of all times

Blockwriter screenshot

Blockwriter is a simple text editor that simulates a typewriter. Based on Khoi Vinh's excellent Blockwriter write-up.

Continue reading "Blockwriter, the greatest typewriter of all times"

Generating Prime Numbers

A utility in C# that 1) allows you to generate all the prime numbers between 1 and the number you specify, and 2) tells you whether or not your a particular number is prime.

Continue reading "Generating Prime Numbers"

Verifying MD5 Checksum

A checksum is a way of checking that a file hasn't changed. MD5 Verifier allows you to easily check an executable file against its checksum.

Continue reading "Verifying MD5 Checksum"

TinyLists

It's stunning how many lists I keep in my life....

TinyLists Screenshot

TinyLists Screenshot

String to Enum

Using Enum.Parse to translate a string value into an enum value.

Continue reading "String to Enum"

Processes in .NET

Various ways that you can use System.Diagnostics.Process to perform various actions.

Continue reading "Processes in .NET"

Custom Sorting With IComparable and IComparer

The default sorting provided by .NET isn't enough most of the time. To enable sorting by a field that you want --- for example, a post's title --- you need to implement the IComparable interface. To allow the users to sort by multiple different fields, you need to implement IComparer.

Continue reading "Custom Sorting With IComparable and IComparer"

2 of 6 pages  <  1 2 3 4 >  Last »

On the Side