Got a nice little tip today from my friend and colleague Björn. Check out the difference in these approaches for testing strings, using the Equals method:

string someString = null;
if (someString == "gnu") //This is error prone if someString is null
{
}

if (someString.Equals("gnu")) //This is error prone if someString is null
{
}

if ("gnu".Equals(someString))//This returns false, if someString is null
{
}

Nice, huh? :-)