Tuesday, August 02, 2005 4:55 AM
int? i = null;
object obj = "some string...";
obj = i;
if (obj == null)
{
MessageBox.Show("true...");
}
else {
MessageBox.Show("false...");
}
OK, why is it that obj == null is false? Is it because i is a value type and obj is an object type? I don't think it's because the variable i is a value type since this will defeat the purpose of nullable types....