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"

Screen Grabbing with .NET

How to programmatically connect to a webpage and get content via .NET.

ScreenGrabber Screenshot

ScreenGrabber Screenshot

Continue reading "Screen Grabbing with .NET"

How to Cast an ArrayList to an Array

So you have an ArrayList of strings and you want to return it as a string[] array. It's really easy:

return (string[])arrayList.ToArray(typeof(string));

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

On the Side