IsNull()
Determines if the underlying object is null.
public static bool IsNull(this object obj)private enum Level
{
Low = 0,
Medium = 15,
High = 30,
}
DBNull.Value.IsNull();
((object)null).IsNull();
((string)null).IsNull();
Level.Medium.IsNull();true
true
true
falseLast updated