ReferenceEquals - >Determines whether the specified System.Object instances are the same instance. public bool IsNull(object obj)
{
return object.ReferenceEquals(obj, null);
}
To test above method:- string st = null;
Response.Write(IsNull(st) + "<br/>");
True
st = "1";
Response.Write(IsNull(st) + "<br/>");
False