Benny Sutton is 4 hire - just click here
Null handling Strings
Nothing worse than trying to save a null to a string field! Always return a string, even if null is passed in.
public static string NZ(this string str)
{
return str ?? default(string);
}
call like this...
str = strToTest.NZ();