G
Guest
Can someone explain to me why this code throws an exception ?
I mean, isn't that what Nullable types are supposed to be about ?
float? f = null;
Object o = f;
if (o != null)
throw new Exception("What the hell ?");
How can I test that an Object is null without doing some special cases for
Nullable types ?
Yannick L.
I mean, isn't that what Nullable types are supposed to be about ?
float? f = null;
Object o = f;
if (o != null)
throw new Exception("What the hell ?");
How can I test that an Object is null without doing some special cases for
Nullable types ?
Yannick L.