System.ObjectExtentions.IsNull C# (CSharp) Method

IsNull() public static method

Check to determine if the object is null
public static IsNull ( this foo ) : bool
foo this
return bool
        public static bool IsNull(this object foo)
        {
            return foo == null || foo == DBNull.Value;
        }