Extension Methods from Steve Mentzer
-
Essentially the implementation of the sql 'isnull' function, allowing the string type (when null) to be replaced with another value.
-
A handy extension method for System.String that eliminates this pattern when trying to avoid null reference exceptions.
if (someString==null)
someString=string.Empty;