IsNull
A better IsNull() implementation.
Returns true if object value is null or DBNull
Source
public static bool IsNull(this object obj)
{
return obj == null || obj == DBNull.Value || Convert.IsDBNull(obj) == true;
}
Example
string foo = null;
if(foo.IsNull())
{
//...
}