2012/05/01 - Reversing a string

In interviews candidates are often asked to write the code to reverse the characters in a string. For example, “Hello World” becomes “dlroW olleH”. But can you do it in a single line of C#?


Answer:

using System; 
using System.Linq;
… 
Console.WriteLine(new string("Reverse this string using only a single line of code".ToCharArray().Reverse().ToArray()));

2012/04/30 - Seperated At Birth?

Found this classic from 2004 lurking around a backup folder:

2012/04/22 - Welcome

Welcome to the other personal site of Dave Brankin. The other site was last updated in 2003 so I figured it was time to start over. Once I'm happy with this new site, the old site will be CNAMED here.