This code snippet converts any string that it is passed into 'Title Case', ie capitalising the first letter of every word. Very useful for titles (unsurprisingly given the name!) It will work with strings that are all lower case, all upper case, or any other mix of case.

Note the using statement to bring in the System.Globalisation namespace, the program will not compile without this.

As an example, the input the quick brown fox jumped over the lazy dog will be converted to The Quick Brown Fox Jumped Over The Lazy Dog