In SQL Server you can use the IsNull() function to check if a value is null, and if it is, return another value. Now I am wondering if there is anything similar
IsNull()
Use the Equals method:
object value2 = null; Console.WriteLine(object.Equals(value2,null));